runscript: simplify livecd-functions.sh loading

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2011-09-17 23:07:33 -04:00
parent 0e4d169a40
commit 95adeb85ba

View File

@ -49,8 +49,7 @@ sourcex "@SYSCONFDIR@/init.d/functions.sh"
sourcex "@LIBEXECDIR@/sh/rc-functions.sh" sourcex "@LIBEXECDIR@/sh/rc-functions.sh"
# Support LiveCD foo # Support LiveCD foo
if [ -r /sbin/livecd-functions.sh ]; then if sourcex -e "/sbin/livecd-functions.sh"; then
sourcex "/sbin/livecd-functions.sh"
livecd_read_commandline livecd_read_commandline
fi fi