#!/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