summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_sysvrc
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_sysvrc')
-rwxr-xr-xhelpers/lh_chroot_sysvrc18
1 files changed, 12 insertions, 6 deletions
diff --git a/helpers/lh_chroot_sysvrc b/helpers/lh_chroot_sysvrc
index f86485443..891323600 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