diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:50 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:29 +0100 |
commit | 4739146fc6c4de8b16418517bb882312c475195c (patch) | |
tree | a3c29d97d1ead4ad4fa532b1c6bfdb419f160e71 /helpers/lh_chroot_sysvrc | |
parent | 1863ed88740575342008ac5f694d03e944bcece2 (diff) | |
download | live-build-4739146fc6c4de8b16418517bb882312c475195c.zip live-build-4739146fc6c4de8b16418517bb882312c475195c.tar.gz |
Adding live-helper 1.0~a6-1.
Diffstat (limited to 'helpers/lh_chroot_sysvrc')
-rwxr-xr-x | helpers/lh_chroot_sysvrc | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/helpers/lh_chroot_sysvrc b/helpers/lh_chroot_sysvrc index f864854..8913236 100755 --- a/helpers/lh_chroot_sysvrc +++ b/helpers/lh_chroot_sysvrc @@ -36,17 +36,17 @@ Breakpoint "chroot_sysvrc: Init" # Requiring stage file Require_stagefile .stage/bootstrap -# Checking lock file -Check_lockfile .lock - -# Creating lock file -Create_lockfile .lock - case "${1}" in install) # Checking stage file Check_stagefile .stage/chroot_sysvrc + # Checking lock file + Check_lockfile .lock + + # Creating lock file + Create_lockfile .lock + if [ -f chroot/usr/sbin/policy-rc.d ] then # Save policy-rc.d file @@ -70,6 +70,12 @@ EOF ;; remove) + # Checking lock file + Check_lockfile .lock + + # Creating lock file + Create_lockfile .lock + if [ -f chroot/usr/sbin/policy-rc.d.orig ] then # Restore policy-rc.d file |