diff options
author | Mario Izquierdo (mariodebian) <mariodebian@gmail.com> | 2013-10-10 16:27:41 +0200 |
---|---|---|
committer | Mario Izquierdo (mariodebian) <mariodebian@gmail.com> | 2013-10-10 16:27:41 +0200 |
commit | 12200ac166cd1fbd131dba84680e9bb38e45e393 (patch) | |
tree | 8c6cbb5da1558a7f7c75c2aa239eb4c0024ae91c | |
parent | 8018b26d465ee010df5a927f493fb7b7c533bb2c (diff) |
Check for DESTDIR/scripts dir before cleaning
-rwxr-xr-x | hooks-addons/clean_initramfs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hooks-addons/clean_initramfs b/hooks-addons/clean_initramfs index 617c8b2..b8154e1 100755 --- a/hooks-addons/clean_initramfs +++ b/hooks-addons/clean_initramfs @@ -7,7 +7,7 @@ _verbose "(clean_initramfs) Cleaning initramfs..." -if [ "${DESTDIR}" = "" ] || [ "$DESTDIR" = "/" ]; then +if [ "${DESTDIR}" = "" ] || [ "$DESTDIR" = "/" ] || [ ! -d "$DESTDIR/scripts" ]; then _echo " * ERROR: DESTDIR var not set. not cleaning initramfs..." exit 1 fi @@ -166,7 +166,7 @@ fi if [ "$TCOS_DISABLE_USPLASH" = "1" ]; then - _echo " * Remove usplash" + #_echo " * Remove usplash" rm -f ${DESTDIR}/lib/usplash 2>/dev/null rm -f ${DESTDIR}/sbin/usplash 2>/dev/null rm -f ${DESTDIR}/sbin/usplash_write 2>/dev/null |