From 95adeb85bad458d3eb41c6c88289fdb462594641 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 17 Sep 2011 23:07:33 -0400 Subject: runscript: simplify livecd-functions.sh loading Signed-off-by: Mike Frysinger --- sh/runscript.sh.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in index fe30a039..58532125 100644 --- a/sh/runscript.sh.in +++ b/sh/runscript.sh.in @@ -49,8 +49,7 @@ sourcex "@SYSCONFDIR@/init.d/functions.sh" sourcex "@LIBEXECDIR@/sh/rc-functions.sh" # Support LiveCD foo -if [ -r /sbin/livecd-functions.sh ]; then - sourcex "/sbin/livecd-functions.sh" +if sourcex -e "/sbin/livecd-functions.sh"; then livecd_read_commandline fi -- cgit v1.2.3