blob: 8b2583e29619c54ee9c888d78779e6a559e357c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
mypath=$_
roottype=`awk '$2 == "/" { print $3 }' /etc/fstab`
maybe_umount() {
eval d=\$$#
awk "\$2 == \"$d\" { system(\"umount \" \$d) }" /proc/mounts
}
if [ "$roottype" == unionfs ]; then
maybe_umount /var/lib/rpm
maybe_umount /tmp/rpm/real
maybe_umount /tmp/rpm
fi
# disable self during first halt when installed
rm -f $mypath
/bin/plymouth quit
|