4 Commits

Author SHA1 Message Date
Eric Vidal
8a2027df08 classify the compilation database source directory 2016-06-07 17:50:44 +04:00
Eric Vidal
d2a83294e0 fix obscur bug about ip link 2016-06-06 17:19:58 +04:00
Eric Vidal
a221f2dd22 grrr 2016-06-04 21:20:02 +04:00
Eric Vidal
905d8f07b2 add shutdown script 2016-06-04 16:15:43 +04:00
14 changed files with 41 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

1
compiled/previous Symbolic link
View File

@@ -0,0 +1 @@
/etc/s6/compiled/default

View File

@@ -7,6 +7,5 @@ rofs-Udevd
rofs-Checkfs rofs-Checkfs
rofs-modules rofs-modules
rofs-swap rofs-swap
rofs-loopback
rofs-kernruntime rofs-kernruntime

View File

@@ -1,4 +1,5 @@
rwfs-fsrw rwfs-fsrw
rwfs-loopback
rwfs-nonetwork rwfs-nonetwork
rwfs-localtime rwfs-localtime
rwfs-random rwfs-random

View File

@@ -0,0 +1,2 @@
rwfs-fsrw

View File

@@ -0,0 +1 @@
oneshot

View File

@@ -0,0 +1,4 @@
#!/usr/local/bin/execlineb -P
fdmove -c 2 1
ip link set up dev lo

View File

@@ -1 +0,0 @@
/etc/s6-serv/available/all-User

View File

@@ -0,0 +1,3 @@
# NEVER ERASE this services below if you do not know what you are doing.
boot-ready
# Enter the desire services/bundle names below this lines.

View File

@@ -0,0 +1 @@
bundle

28
shutdown Executable file
View File

@@ -0,0 +1,28 @@
#!/bin/bash
usage() {
cat << EOF
Usage: shutdown [OPTION]
-r, --reboot Reboot
-p, --poweroff Poweroff
EOF
exit 0
}
signal="${1}"
if [ -z $signal ]; then
usage
fi
case "${signal}" in
-p|-P|--poweroff|-H|-h|--halt)
signal=SIGUSR2
;;
-r|--reboot)
signal=SIGINT
;;
*)
usage
esac
exec /run/s6-run/service/.s6-svscan/"${signal}"