sysmocom-configure: handle missing system.conf gracefully

If /slot/system.conf is missing, we just exit the generator.
This commit is contained in:
Jan Luebbe 2015-07-02 11:41:20 +02:00 committed by Holger Hans Peter Freyther
parent 8e104ac413
commit ff183a100e
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,9 @@
#!/bin/sh
if [ ! -e /slot/system.conf ]; then
exit 0
fi
. /slot/system.conf
for HANDLER in $(ls /etc/sysmocom/configure.d/*.sh); do

View File

@ -14,7 +14,6 @@ do_install() {
install -d ${D}${sysconfdir}/sysmocom/configure.d
install -m 0755 ${WORKDIR}/*.sh ${D}${sysconfdir}/sysmocom/configure.d/
}
FILES_${PN} += "${systemd_unitdir}/system-generators"