diff options
Diffstat (limited to 'packages/openslug-init')
-rw-r--r-- | packages/openslug-init/openslug-init-0.10/sysconfsetup | 3 | ||||
-rw-r--r-- | packages/openslug-init/openslug-init-0.10/turnup | 0 | ||||
-rw-r--r-- | packages/openslug-init/openslug-init_0.10.bb | 17 |
3 files changed, 16 insertions, 4 deletions
diff --git a/packages/openslug-init/openslug-init-0.10/sysconfsetup b/packages/openslug-init/openslug-init-0.10/sysconfsetup index f048dfc9bc..83b8d34648 100644 --- a/packages/openslug-init/openslug-init-0.10/sysconfsetup +++ b/packages/openslug-init/openslug-init-0.10/sysconfsetup @@ -7,6 +7,9 @@ then # So the driver can actually load the first time /usr/sbin/update-modules +# Set the default root password so ppl can ssh in + sed -i -e 's/root::/root:uf8TRGX9WDuH2:/' /etc/passwd + dd if=/dev/mtdblock1 of=/etc/linksysconf cat <<EOF > /etc/original-network-settings # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) diff --git a/packages/openslug-init/openslug-init-0.10/turnup b/packages/openslug-init/openslug-init-0.10/turnup new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/packages/openslug-init/openslug-init-0.10/turnup diff --git a/packages/openslug-init/openslug-init_0.10.bb b/packages/openslug-init/openslug-init_0.10.bb index 9960988561..3b749f0a9b 100644 --- a/packages/openslug-init/openslug-init_0.10.bb +++ b/packages/openslug-init/openslug-init_0.10.bb @@ -2,9 +2,10 @@ DESCRIPTION = "Openslug initial network config via sysconf" SECTION = "console/network" LICENSE = "GPL" DEPENDS = "base-files" -PR = "r15" +PR = "r18" SRC_URI = "file://sysconfsetup \ + file://turnup \ file://modutils.txt \ file://modprobe.conf \ file://leds_rs_green \ @@ -27,19 +28,27 @@ do_install() { ${D}/${sysconfdir}/init.d \ ${D}/${sysconfdir}/modutils \ ${D}/${sysconfdir}/rcS.d \ - ${D}/${sysconfdir}/rc2.d \ ${D}/${sbindir} install -d ${D}/initrd install -m 0755 ${D}/../kern_header ${D}${sbindir}/kern_header + install -m 0755 ${D}/../turnup ${D}${sbindir}/turnup install -m 0755 ${D}/../leds ${D}${sbindir}/leds install -m 0755 ${D}/../sysconfsetup ${D}${sysconfdir}/init.d/ install -m 0755 ${D}/../leds_rs_green ${D}${sysconfdir}/init.d/ install -m 0644 ${D}/../modutils.txt ${D}${sysconfdir}/modutils/ install -m 0644 ${D}/../modprobe.conf ${D}${sysconfdir}/ - ln -s /etc/init.d/sysconfsetup ${D}${sysconfdir}/rcS.d/S39sysconfsetup - ln -s /etc/init.d/leds_rs_green ${D}${sysconfdir}/rc2.d/S98leds_rs_green + rm -f ${D}${sysconfdir}/rcS.d/S39sysconfsetup + ln -s ../init.d/sysconfsetup ${D}${sysconfdir}/rcS.d/S39sysconfsetup + # Put this into the user run levels, after the rmnologin (which is + # the thing that allows a user log in!) + for l in 2 3 4 5 + do + install -d ${D}/${sysconfdir}/rc$l.d + rm -f ${D}${sysconfdir}/rc$l.d/S99zleds_rs_green + ln -s ../init.d/leds_rs_green ${D}${sysconfdir}/rc$l.d/S99zleds_rs_green + done } FILES_${PN} = "/" |