summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_sysv-rc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/chroot_sysv-rc')
-rwxr-xr-xscripts/build/chroot_sysv-rc14
1 files changed, 4 insertions, 10 deletions
diff --git a/scripts/build/chroot_sysv-rc b/scripts/build/chroot_sysv-rc
index 5ac968e20..574d9c7c9 100755
--- a/scripts/build/chroot_sysv-rc
+++ b/scripts/build/chroot_sysv-rc
@@ -31,11 +31,8 @@ case "${1}" in
# Checking stage file
Check_stagefile .build/chroot_sysv-rc
- # Checking lock file
- Check_lockfile .lock
-
- # Creating lock file
- Create_lockfile .lock
+ # Aquire lock file
+ Acquire_lockfile
if [ -e chroot/usr/sbin/policy-rc.d ]
then
@@ -59,11 +56,8 @@ EOF
remove)
Echo_message "Deconfiguring file /usr/sbin/policy-rc.d"
- # Checking lock file
- Check_lockfile .lock
-
- # Creating lock file
- Create_lockfile .lock
+ # Aquire lock file
+ Acquire_lockfile
# Remove custom policy-rc.d file
rm -f chroot/usr/sbin/policy-rc.d