summaryrefslogtreecommitdiffstats
path: root/trunk/files/halt.pre
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2012-05-26 15:28:33 +0000
committerThomas Backlund <tmb@mageia.org>2012-05-26 15:28:33 +0000
commit528a1fbedeffce036154955623c370b8f47c33bd (patch)
tree0865a6d7c1939082917acf5de3b4f85ba77bd09d /trunk/files/halt.pre
parent07cb265cf99918196a257585757a3c2bb175f57f (diff)
parent7eead25cd00a547753ec94f6b301c5b32968291b (diff)
downloaddraklive-config-528a1fbedeffce036154955623c370b8f47c33bd.tar
draklive-config-528a1fbedeffce036154955623c370b8f47c33bd.tar.gz
draklive-config-528a1fbedeffce036154955623c370b8f47c33bd.tar.bz2
draklive-config-528a1fbedeffce036154955623c370b8f47c33bd.tar.xz
draklive-config-528a1fbedeffce036154955623c370b8f47c33bd.zip
new branch for mga2distro/mga2
Diffstat (limited to 'trunk/files/halt.pre')
-rw-r--r--trunk/files/halt.pre20
1 files changed, 0 insertions, 20 deletions
diff --git a/trunk/files/halt.pre b/trunk/files/halt.pre
deleted file mode 100644
index 8b2583e..0000000
--- a/trunk/files/halt.pre
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/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