Browse Source

sysmocom-configure: handle missing system.conf gracefully

If /slot/system.conf is missing, we just exit the generator.
hfreyther/linux-4.1-upgrade
Jan Luebbe 7 years ago
committed by Holger Hans Peter Freyther
parent
commit
ff183a100e
  1. 4
      recipes-config/sysmocom-configure/files/sysmocom-generator
  2. 1
      recipes-config/sysmocom-configure/sysmocom-configure_1.0.bb

4
recipes-config/sysmocom-configure/files/sysmocom-generator

@ -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

1
recipes-config/sysmocom-configure/sysmocom-configure_1.0.bb

@ -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"

Loading…
Cancel
Save