Open main menu
Home
Random
Log in
Settings
About Sugar Labs
Disclaimers
Sugar Labs
Search
Changes
← Older edit
Newer edit →
Dextrose/Server/Addons
(view source)
Revision as of 10:24, 27 March 2011
9 bytes added
,
10:24, 27 March 2011
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
Nubae
36
edits