X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=debian%2Flive-boot.init;h=63b07f08c4c30d746e850c94908af021bb1401fd;hb=9ef429915e70c4fcbac1a6b1b3c29dc753af5577;hp=6c3e665a70a23a48c9bf40368f735dd207a1b1da;hpb=8705e0f269bf7e592c32d835ac6685612fb39ad3;p=live-boot-grml.git diff --git a/debian/live-boot.init b/debian/live-boot.init index 6c3e665..63b07f0 100644 --- a/debian/live-boot.init +++ b/debian/live-boot.init @@ -49,7 +49,7 @@ cache_path() then if [ -x "${path}" ] then - if file "${path}" | grep -q 'dynamically linked' + if file -L "${path}" | grep -q 'dynamically linked' then for lib in $(ldd "${path}" | awk '{ print $3 }') do @@ -97,6 +97,7 @@ do_stop () { if ! grep -qs nopersistent /proc/cmdline && grep -qs persistent /proc/cmdline then + # ROOTSNAP and HOMESNAP are defined in ${SNAPSHOT_CONF} file if [ ! -z "${ROOTSNAP}" ] then ${DO_SNAPSHOT} --resync-string="${ROOTSNAP}"