diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:47 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 18:18:28 +0100 |
commit | 677415f6d7efc1e5b888570d70af311d2900c69c (patch) | |
tree | 32fe7ced768666c229fff913fe12cbbf2fdd34e4 /helpers/lh_chroot_sysvrc | |
parent | 811ff0532fcb3305ebefcd1d61e4eb6c260902eb (diff) | |
download | live-build-677415f6d7efc1e5b888570d70af311d2900c69c.zip live-build-677415f6d7efc1e5b888570d70af311d2900c69c.tar.gz |
Adding live-helper 1.0~a2-1.
Diffstat (limited to 'helpers/lh_chroot_sysvrc')
-rwxr-xr-x | helpers/lh_chroot_sysvrc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/helpers/lh_chroot_sysvrc b/helpers/lh_chroot_sysvrc index 4f4eeef..403982b 100755 --- a/helpers/lh_chroot_sysvrc +++ b/helpers/lh_chroot_sysvrc @@ -16,27 +16,27 @@ Read_conffile config/chroot Set_defaults # Requiring stage file -Require_stagefile "${LIVE_ROOT}"/.stage/bootstrap +Require_stagefile .stage/bootstrap # Checking lock file -Check_lockfile "${LIVE_ROOT}"/.lock +Check_lockfile .lock # Creating lock file -Create_lockfile "${LIVE_ROOT}"/.lock +Create_lockfile .lock case "${1}" in install) # Checking stage file - Check_stagefile "${LIVE_ROOT}"/.stage/chroot_sysvrc + Check_stagefile .stage/chroot_sysvrc - if [ -f "${LIVE_CHROOT}"/usr/sbin/policy-rc.d ] + if [ -f chroot/usr/sbin/policy-rc.d ] then # Save policy-rc.d file - mv "${LIVE_CHROOT}"/usr/sbin/policy-rc.d "${LIVE_CHROOT}"/usr/sbin/policy-rc.d.orig + mv chroot/usr/sbin/policy-rc.d chroot/usr/sbin/policy-rc.d.orig fi # Create policy-rc.d file -cat > "${LIVE_CHROOT}"/usr/sbin/policy-rc.d << EOF +cat > chroot/usr/sbin/policy-rc.d << EOF #!/bin/sh echo @@ -45,24 +45,24 @@ echo "Warning: invoke-rc.d policy in action. Skiping daemon starting" exit 101 EOF - chmod 0755 "${LIVE_CHROOT}"/usr/sbin/policy-rc.d + chmod 0755 chroot/usr/sbin/policy-rc.d # Creating stage file - Create_stagefile "${LIVE_ROOT}"/.stage/chroot_sysvrc + Create_stagefile .stage/chroot_sysvrc ;; remove) - if [ -f "${LIVE_CHROOT}"/usr/sbin/policy-rc.d.orig ] + if [ -f chroot/usr/sbin/policy-rc.d.orig ] then # Restore policy-rc.d file - mv "${LIVE_CHROOT}"/usr/sbin/policy-rc.d.orig "${LIVE_CHROOT}"/usr/sbin/policy-rc.d + mv chroot/usr/sbin/policy-rc.d.orig chroot/usr/sbin/policy-rc.d else # Remove policy-rc.d file - rm -f "${LIVE_CHROOT}"/usr/sbin/policy-rc.d + rm -f chroot/usr/sbin/policy-rc.d fi # Removing stage file - rm -f "${LIVE_ROOT}"/.stage/chroot_sysvrc + rm -f .stage/chroot_sysvrc ;; *) |