diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-09-17 23:07:33 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-09-18 15:25:51 -0400 |
commit | 95adeb85bad458d3eb41c6c88289fdb462594641 (patch) | |
tree | 6d0bcf24ca3a0c3663d25d15e0e99017dc15a5fb /sh | |
parent | 0e4d169a40e01d74cf5ff399afe049a25543f0f6 (diff) |
runscript: simplify livecd-functions.sh loading
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'sh')
-rw-r--r-- | sh/runscript.sh.in | 3 |
1 files changed, 1 insertions, 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 |