summaryrefslogtreecommitdiff
path: root/recipes-core
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-02-16 12:17:44 -0600
committerJohn Klug <john.klug@multitech.com>2018-02-16 16:14:33 -0600
commit3f9a7a41730e5799068c5c85b64eb87c56d53f2a (patch)
treec23d7055f6c35816a7e4467a007354fa99db320e /recipes-core
parent1daf0bbeda46dbea7b287f3d69d466c826445ef4 (diff)
downloadmeta-mlinux-3f9a7a41730e5799068c5c85b64eb87c56d53f2a.tar.gz
meta-mlinux-3f9a7a41730e5799068c5c85b64eb87c56d53f2a.tar.bz2
meta-mlinux-3f9a7a41730e5799068c5c85b64eb87c56d53f2a.zip
Remove get-eeprom-device-config from /etc/init.d/config
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/multitech/config_2.1.bb40
1 files changed, 40 insertions, 0 deletions
diff --git a/recipes-core/multitech/config_2.1.bb b/recipes-core/multitech/config_2.1.bb
new file mode 100644
index 0000000..c49f06a
--- /dev/null
+++ b/recipes-core/multitech/config_2.1.bb
@@ -0,0 +1,40 @@
+DESCRIPTION = "Provides default system config files and /var/config fs"
+SECTION = "base"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
+PR = "r1"
+
+inherit update-rc.d
+
+INITSCRIPT_NAME = "config"
+INITSCRIPT_PARAMS = "start 31 S ."
+
+SRC_URI = "\
+ file://network \
+ file://ppp \
+ file://config.init \
+"
+
+CONFIGFILES = "network ppp"
+
+fakeroot do_install () {
+ cd ${WORKDIR}
+
+ # default config files
+ rm -f defaults.tar.gz
+ chown root:root -R ${CONFIGFILES}
+ tar czf defaults.tar.gz ${CONFIGFILES}
+ install -d ${D}${sysconfdir}
+ install -m 0644 ${WORKDIR}/defaults.tar.gz ${D}${sysconfdir}/defaults.tar.gz
+
+ # save root password for resetting to defaults
+ echo -n '${ROOT_PASSWORD_HASH}' > ${D}${sysconfdir}/default_pass
+ chmod 400 ${D}${sysconfdir}/default_pass
+
+ # init script
+ install -d ${D}${sysconfdir}/init.d
+ install -m 0755 ${WORKDIR}/config.init ${D}${sysconfdir}/init.d/config
+}
+
+FILES_${PN} = "${sysconfdir}/defaults.tar.gz ${sysconfdir}/default_pass"
+FILES_${PN} += "${sysconfdir}/init.d/config"