Commit 80a0d09b authored by Christopher Spinrath's avatar Christopher Spinrath

lip_hook: check existence of initrd_hook directory

parent 41b76d32
......@@ -27,11 +27,15 @@ log_begin_msg "$DESCRIPTION"
#cp /lip/no-bootloader-icon/ubiquity-kdeui-no-bootloader.desktop /root/usr/share/applications/kde4/
#TODO: install ubiquity here?
for hook in $(find "${LIP_HOOKS}" -name "*.hook.sh"); do
log_begin_msg "Executing lip hook ${hook}"
/bin/sh "${hook}"
log_end_msg
done
if [ -d "${LIP_HOOKS}" ]; then
for hook in $(find "${LIP_HOOKS}" -name "*.hook.sh"); do
log_begin_msg "Executing lip hook ${hook}"
/bin/sh "${hook}"
log_end_msg
done
else
log_warning_msg "No lip hook directory avaiable in /cdrom"
fi
log_end_msg
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment