Files
initscripts/usr/lib/init/services/networking.service
T
2024-11-01 14:15:42 +07:00

33 lines
571 B
Desktop File
Executable File

#!/bin/sh
#--- import colors and init-funcs ---
. /usr/lib/init/colors.sh
. /usr/lib/init/init-funcs.sh
#------------------------------------
start() {
notify "Starting networking"
/usr/bin/ifup -a
check $? "networking"
echo $! > /var/run/networking.pid
return $?
}
stop() {
notify "Stopping networking"
/usr/bin/ifdown -a
check $? "Stop networking"
rm /var/run/networking.pid &> /dev/null
return $?
}
case "$1" in
start|stop|restart|reload|help)
"$1"
;;
*)
help
return 1
esac
return $?