aboutsummaryrefslogtreecommitdiff
path: root/examples/E50-initscripts-2.86.ds1-7.workaround.sh
blob: ec1197d1271bbacea15f38e56b59fed2b208a15a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
# example file to be used with --hookdir
#
# work around initscripts postinst which mounts /sys etc.
# Bug: #344089

set +e

umount /sys
umount /run
umount /proc/bus/usb
umount /dev/shm

# work around initscripts postinst which mount /lib/init/rw
# Bug: #392136, #390126
umount /lib/init/rw

# inetd seems to be dually started after upgrade, kill it.
# Bug: #262627
kill -9 $(cat /var/run/inetd.pid)

exit 0