sysmocom-configure: handle missing system.conf gracefully
If /slot/system.conf is missing, we just exit the generator.hfreyther/linux-4.1-upgrade
parent
8e104ac413
commit
ff183a100e
|
@ -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
|
||||
|
|
|
@ -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…
Reference in New Issue