Changes

Jump to navigation Jump to search
no edit summary
Line 33: Line 33:  
     exit
 
     exit
 
  else
 
  else
    case \$1 in
+
      case \$1 in
  eth0|ppp0)
+
  eth0|ppp0)
 
             namedtpl=/etc/named-xs.conf.tpl
 
             namedtpl=/etc/named-xs.conf.tpl
 
             namedconf=/etc/named-xs.conf
 
             namedconf=/etc/named-xs.conf
Line 42: Line 42:  
                 if [ x\$i != x127.0.0.1 ]; then
 
                 if [ x\$i != x127.0.0.1 ]; then
 
                     FWD="\$FWD \$i;"
 
                     FWD="\$FWD \$i;"
  else
+
  else
 
                     exit     
 
                     exit     
  fi
+
  fi
 
             done  
 
             done  
    cp \$namedtpl \$namedconf  
+
      cp \$namedtpl \$namedconf  
 
             logger "changing /etc/named-xs.conf using forwarders \$FWD"
 
             logger "changing /etc/named-xs.conf using forwarders \$FWD"
 
             sed -i -e "s/@@BASEDNSFWD@@/\$FWD/" \$namedconf
 
             sed -i -e "s/@@BASEDNSFWD@@/\$FWD/" \$namedconf
   
             logger "changing /etc/resolv.conf for principal school server"
 
             logger "changing /etc/resolv.conf for principal school server"
    cp /etc/sysconfig/olpc-scripts/resolv.conf /etc/resolv.conf   
+
      cp /etc/sysconfig/olpc-scripts/resolv.conf /etc/resolv.conf   
    ;;
+
      ;;
 
     esac
 
     esac
 
  fi
 
  fi
 
  EOF
 
  EOF
 
  chmod 755 /sbin/ifup-local
 
  chmod 755 /sbin/ifup-local
36

edits

Navigation menu