summaryrefslogtreecommitdiff
path: root/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb
diff options
context:
space:
mode:
Diffstat (limited to 'packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb')
-rw-r--r--packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb21
1 files changed, 16 insertions, 5 deletions
diff --git a/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb b/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb
index 73089bafeb..290d2debbc 100644
--- a/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb
+++ b/packages/nslu2-binary-only/unslung-rootfs_2.3r63.bb
@@ -1,6 +1,6 @@
SECTION = "base"
-PR = "r15"
+PR = "r16"
DEPENDS = "nslu2-linksys-libs nslu2-linksys-sambacodepages"
@@ -11,11 +11,12 @@ SRC_URI = "http://nslu.sf.net/downloads/nslu2-linksys-ramdisk-2.3r63-2.tar.bz2 \
file://motd-fl \
file://motd-un \
file://unsling \
- file://resling \
- file://slingover \
+# file://resling \
+# file://slingover \
file://linuxrc \
file://unslung.gif \
file://nsswitch.conf \
+ file://rc.bootdisk \
file://rc.optware-start \
file://rc.optware-stop \
file://rc-diversion.patch;patch=1 \
@@ -23,6 +24,7 @@ SRC_URI = "http://nslu.sf.net/downloads/nslu2-linksys-ramdisk-2.3r63-2.tar.bz2 \
file://rc.1-timestamp.patch;patch=1 \
file://rc.crond-diversion.patch;patch=1 \
file://rc.halt-diversion.patch;patch=1 \
+ file://rc.lan-shell.patch;patch=1 \
file://rc.local-diversion.patch;patch=1 \
file://rc.modules-diversion.patch;patch=1 \
file://rc.network-diversion.patch;patch=1 \
@@ -104,10 +106,11 @@ do_compile () {
install -d ${S}/initrd
install -m 755 ${WORKDIR}/unsling ${S}/sbin/unsling
- install -m 755 ${WORKDIR}/resling ${S}/sbin/resling
- install -m 755 ${WORKDIR}/slingover ${S}/sbin/slingover
+# install -m 755 ${WORKDIR}/resling ${S}/sbin/resling
+# install -m 755 ${WORKDIR}/slingover ${S}/sbin/slingover
install -m 755 ${WORKDIR}/rc.optware-start ${S}/etc/rc.d/rc.optware-start
install -m 755 ${WORKDIR}/rc.optware-stop ${S}/etc/rc.d/rc.optware-stop
+ install -m 755 ${WORKDIR}/rc.bootdisk ${S}/etc/rc.d/rc.bootdisk
install -m 644 ${WORKDIR}/nsswitch.conf ${S}/etc/nsswitch.conf
@@ -161,6 +164,14 @@ do_compile () {
# a link to busybox or slingbox at some point.
rm -r ${S}/usr/sbin/date
ln -s ../../bin/date ${S}/usr/sbin/date
+
+ # Replace the Linksys-provided /bin/busybox with a link to slingbox.
+ rm -f ${S}/bin/busybox
+ ln -s slingbox ${S}/bin/busybox
+
+ # No reason not to have a home directory for root...
+ mkdir -p ${S}/root
+ chmod 775 ${S}/root
}
do_install () {