[unmaintained] init scripts for sinit
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.
|
#!/bin/sh |
|
# |
|
# reboot - reboots the system |
|
# (c) ix 2016 |
|
# |
|
|
|
check_root() { |
|
if [ "$(id -u)" != "0" ]; then |
|
echo "reboot: Operation not permitted." |
|
exit 1 |
|
fi |
|
} |
|
|
|
check_root && kill -s INT 1
|
|
|