summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_hosts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build/chroot_hosts')
-rwxr-xr-xscripts/build/chroot_hosts14
1 files changed, 4 insertions, 10 deletions
diff --git a/scripts/build/chroot_hosts b/scripts/build/chroot_hosts
index edbcb3793..d7e97fa70 100755
--- a/scripts/build/chroot_hosts
+++ b/scripts/build/chroot_hosts
@@ -31,11 +31,8 @@ case "${1}" in
# Checking stage file
Check_stagefile .build/chroot_hosts
- # Checking lock file
- Check_lockfile .lock
-
- # Creating lock file
- Create_lockfile .lock
+ # Aquire lock file
+ Acquire_lockfile
if [ -f chroot/etc/hosts ]
then
@@ -64,11 +61,8 @@ EOF
remove)
Echo_message "Deconfiguring file /etc/hosts"
- # Checking lock file
- Check_lockfile .lock
-
- # Creating lock file
- Create_lockfile .lock
+ # Aquire lock file
+ Acquire_lockfile
if [ -e config/includes.chroot/etc/hosts ]
then