summaryrefslogtreecommitdiffstats
path: root/trunk/tools/umount-live
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/tools/umount-live
parent07cb265cf99918196a257585757a3c2bb175f57f (diff)
parent7eead25cd00a547753ec94f6b301c5b32968291b (diff)
downloaddraklive-config-distro/mga2.tar
draklive-config-distro/mga2.tar.gz
draklive-config-distro/mga2.tar.bz2
draklive-config-distro/mga2.tar.xz
draklive-config-distro/mga2.zip
new branch for mga2distro/mga2
Diffstat (limited to 'trunk/tools/umount-live')
-rw-r--r--trunk/tools/umount-live48
1 files changed, 0 insertions, 48 deletions
diff --git a/trunk/tools/umount-live b/trunk/tools/umount-live
deleted file mode 100644
index 098c82e..0000000
--- a/trunk/tools/umount-live
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-#
-### BEGIN INIT INFO
-# Provides: umount-live
-# Default-Stop: 0 6
-# Should-Stop: $remote_fs
-# Short-Description: Umounts live-system-specific mountpoints on
-#halt/reboot
-# Description: This service umounts live-system-specific mountpoints
-#on halt/reboot.
-### END INIT INFO
-
-mypath=$_
-
-case "$1" in
- *start)
- ;;
- *stop)
- exit
- ;;
- *)
- gprintf "Usage: %s\n" "$(basename $0) {start}"
- exit 1
- ;;
-esac
-
-roottype=`awk '$2 == "/" { print $3 }' /etc/fstab`
-
-if [ "$roottype" != unionfs ]; then
- # disable self during first halt when installed
- chkconfig --del $(basename $0)
- #rm -f $mypath
- exit
-fi
-
-maybe_umount() {
- eval d=\$$#
- [ -e $d ] && umount $@
-}
-
-maybe_umount -l /live/distrib
-maybe_umount -l /live/memory
-maybe_umount -l /live/system
-maybe_umount -l /live/media
-
-maybe_umount /var/lib/rpm
-maybe_umount /tmp/rpm/real
-maybe_umount /tmp/rpm