rootfs build updated

This commit is contained in:
wt
2024-08-19 18:00:45 +07:00
parent 2e228c1991
commit d7b46cbc67
20 changed files with 1638 additions and 38 deletions
+26
View File
@@ -0,0 +1,26 @@
#!/bin/sh
. /etc/init.d/colors.sh
case "$1" in
start)
printf "$UYELLOW Starting networking\n$RESET"
/sbin/ifup -a &> /dev/null
check $? "networking"
echo $! > /var/run/networking.pid
;;
stop)
printf "$UYELLOW Stopping netowrking\n$RESET"
/sbin/ifdown -a
check $? "Stop networking"
rm /var/run/networking.pid
;;
restart|reload)
$0 stop
$0 start
;;
*)
echo "$0 init script usage: $0 {start|stop|restart|reload}"
return 1
esac
return $?