commit 0cdb5ccc0924b3d9ce7b54f0230fdbea668b979b
parent 39262bdc5884a9dcf09ff48c88776466b4ce526e
Author: sin <sin@2f30.org>
Date: Mon, 23 Sep 2013 17:04:43 +0100
Use -s -k and -r for start stop and restart
Diffstat:
4 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/etc/rc.d/dropbear b/etc/rc.d/dropbear
@@ -3,17 +3,17 @@
. /etc/rc.conf
case "$1" in
- start)
+ -s)
dropbear -B
;;
- stop)
+ -k)
pkill dropbear
;;
- restart)
+ -r)
pkill dropbear
dropbear -B
;;
*)
- echo "usage: $0 [start|stop|restart]"
+ echo "usage: $0 [-s|-k|-r]"
esac
exit 0
diff --git a/etc/rc.d/network b/etc/rc.d/network
@@ -3,19 +3,19 @@
. /etc/rc.conf
case "$1" in
- start)
+ -s)
ifconfig $INTERFACE up && sdhcp $INTERFACE
;;
- stop)
+ -k)
pkill sdhcp
ifconfig $INTERFACE down
;;
- restart)
+ -r)
pkill sdhcp
ifconfig $INTERFACE down
ifconfig $INTERFACE up && sdhcp $INTERFACE
;;
*)
- echo "usage: $0 [start|stop|restart]"
+ echo "usage: $0 [-s|-k|-r]"
esac
exit 0
diff --git a/etc/rc.multi b/etc/rc.multi
@@ -10,7 +10,7 @@ chmod 644 /etc/dropbearkeys
for s in $SVC; do
echo Starting $s
- /etc/rc.d/$s start
+ /etc/rc.d/$s -s
done
echo Running rc.local
diff --git a/etc/rc.shutdown b/etc/rc.shutdown
@@ -10,7 +10,7 @@ hwclock -u -w
echo $SVC | sed 's/ /\n/g' | tac | while read s; do
echo Stopping $s
- /etc/rc.d/$s stop
+ /etc/rc.d/$s -k
done
killall5 -15