diff options
Diffstat (limited to 'packages/initrdscripts/files/init.sh')
-rw-r--r-- | packages/initrdscripts/files/init.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packages/initrdscripts/files/init.sh b/packages/initrdscripts/files/init.sh index 60d2e5da8b..cfac69b6d9 100644 --- a/packages/initrdscripts/files/init.sh +++ b/packages/initrdscripts/files/init.sh @@ -41,9 +41,11 @@ read_args() { load_modules() { for module in $MODULE_DIR/$1; do - # Cannot redir to $CONSOLE here easily - may not be set yet - echo "initramfs: Loading $module module" - source $module + if [ -e "$module" ]; then + # Cannot redir to $CONSOLE here easily - may not be set yet + echo "initramfs: Loading $module module" + source $module + fi done } |