summaryrefslogtreecommitdiff
path: root/src/initrd/init.shutdown
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-05-01 01:33:25 -0400
committerAndrew Cady <d@jerkface.net>2016-05-01 01:33:25 -0400
commit6a5412e0b15fc68844ffd16f029e3f002b9cfb43 (patch)
tree96ae76064a1d1cd284e759370baebab867da293b /src/initrd/init.shutdown
parentc2482125126bb6aeaa9894415a079de89d5fb1aa (diff)
remove unused files
Diffstat (limited to 'src/initrd/init.shutdown')
-rwxr-xr-xsrc/initrd/init.shutdown30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/initrd/init.shutdown b/src/initrd/init.shutdown
deleted file mode 100755
index 6bfce84..0000000
--- a/src/initrd/init.shutdown
+++ /dev/null
@@ -1,30 +0,0 @@
1#!/bin/sh
2read omitpids < /run/sendsigs.omit.d/samizdat
3for pid in $omitpids; do
4 if [ -e /proc/$pid/root ]; then
5 initroot=/proc/$pid/root
6 break
7 fi
8done
9
10warn() { echo "$*" >/dev/console; }
11error() { umount /sbin/init; exec /sbin/init; }
12
13[ -e "$initroot" ] || error
14
15if [ $$ != 1 ]; then
16 exec $initroot/init "$@"
17else
18 set --
19 for pid in $omitpids; do
20 set -- "$@" -o $pid
21 done
22 if killall5 -15 "$@"; then
23 sleep 5
24 killall5 -9 "$@"
25 fi
26 exec <$initroot/dev/console >$initroot/dev/console 2>$initroot/dev/console
27 exec chroot $initroot umountall.sh
28
29 error
30fi