blob: f1d4c3f44217e1ae5f3b718867bc6444f285e626 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
MYTH_RUN_STATUS="1"
. /etc/profile
INIT=`ps -p 1 -o comm=`
#ignore -d option
if [ x$1 = x-d ]
then
exit 0
fi
if [ x$INIT = xrunit ]
then
shutdown -r
else
systemctl reboot $@
fi
|