summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_resolv
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_resolv')
-rwxr-xr-xhelpers/lh_chroot_resolv18
1 files changed, 12 insertions, 6 deletions
diff --git a/helpers/lh_chroot_resolv b/helpers/lh_chroot_resolv
index db68e8c..71143f2 100755
--- a/helpers/lh_chroot_resolv
+++ b/helpers/lh_chroot_resolv
@@ -36,17 +36,17 @@ Breakpoint "chroot_resolv: 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_resolv
+ # Checking lock file
+ Check_lockfile .lock
+
+ # Creating lock file
+ Create_lockfile .lock
+
if [ -f chroot/etc/resolv.conf ]
then
# Save resolv file
@@ -64,6 +64,12 @@ case "${1}" in
;;
remove)
+ # Checking lock file
+ Check_lockfile .lock
+
+ # Creating lock file
+ Create_lockfile .lock
+
if [ -f chroot/etc/resolv.conf.orig ]
then
# Restore resolv file