Files
meta-openwrt/classes/openwrt-services.bbclass
Daniel F. Dickinson 1960ad17c0 classes: Add copyright headers to classes
Every file that can should have a copyright header, so added to classes.

Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
2018-01-23 23:14:47 -06:00

16 lines
543 B
Plaintext

# This file Copyright (C) 2018 Daniel Dickinson <cshored@thecshore.com>
#
# It is released under the MIT license. See COPYING.MIT
# for the terms.
ROOTFS_POSTUNINSTALL_COMMAND_append += ' openwrt_enable_initscripts_hook; '
openwrt_enable_initscripts_hook () {
mkdir -p ${IMAGE_ROOTFS}/etc/rc.d
for script in ${IMAGE_ROOTFS}/etc/init.d/*
do
grep '#!/bin/sh /etc/rc.common' $script > /dev/null || continue
IPKG_INSTROOT=${IMAGE_ROOTFS} /bin/bash ${IMAGE_ROOTFS}/etc/rc.common $script enable || continue
done
}