You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
514 B
31 lines
514 B
8 years ago
|
#!/bin/sh
|
||
|
|
||
|
# manage network interfaces and configure some networking options
|
||
|
|
||
|
case "$1" in
|
||
|
start)
|
||
|
echo -n "Configuring network interfaces... "
|
||
|
ifup -a
|
||
|
if type ifplugd >/dev/null 2>&1; then
|
||
|
echo -n "Starting ifplugd... "
|
||
|
ifplugd -F -p -q
|
||
|
fi
|
||
|
echo "done."
|
||
|
;;
|
||
|
stop)
|
||
|
echo -n "Deconfiguring network interfaces... "
|
||
|
ifdown -a
|
||
|
if type ifplugd >/dev/null 2>&1; then
|
||
|
echo -n "Killing ifplugd... "
|
||
|
ifplugd -k
|
||
|
fi
|
||
|
echo "done."
|
||
|
;;
|
||
|
force-reload|restart)
|
||
|
$0 stop
|
||
|
$0 start
|
||
|
;;
|
||
|
esac
|
||
|
|
||
|
exit 0
|