diff options
Diffstat (limited to 'nslu2-binary-only')
8 files changed, 125 insertions, 19 deletions
diff --git a/nslu2-binary-only/nslu2-unslung-ramdisk-able_2.3r25.oe b/nslu2-binary-only/nslu2-unslung-ramdisk-able_2.3r25.oe new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/nslu2-binary-only/nslu2-unslung-ramdisk-able_2.3r25.oe diff --git a/nslu2-binary-only/nslu2-unslung-ramdisk-ext3flash_2.3r25.oe b/nslu2-binary-only/nslu2-unslung-ramdisk-ext3flash_2.3r25.oe new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/nslu2-binary-only/nslu2-unslung-ramdisk-ext3flash_2.3r25.oe diff --git a/nslu2-binary-only/nslu2-unslung-ramdisk-standard_2.3r25.oe b/nslu2-binary-only/nslu2-unslung-ramdisk-standard_2.3r25.oe new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/nslu2-binary-only/nslu2-unslung-ramdisk-standard_2.3r25.oe diff --git a/nslu2-binary-only/nslu2-unslung-ramdisk-vfatdisk2_2.3r25.oe b/nslu2-binary-only/nslu2-unslung-ramdisk-vfatdisk2_2.3r25.oe new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/nslu2-binary-only/nslu2-unslung-ramdisk-vfatdisk2_2.3r25.oe diff --git a/nslu2-binary-only/nslu2-unslung-ramdisk/able/linuxrc b/nslu2-binary-only/nslu2-unslung-ramdisk/able/linuxrc new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/nslu2-binary-only/nslu2-unslung-ramdisk/able/linuxrc diff --git a/nslu2-binary-only/nslu2-unslung-ramdisk/flashfs b/nslu2-binary-only/nslu2-unslung-ramdisk/flashfs new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/nslu2-binary-only/nslu2-unslung-ramdisk/flashfs diff --git a/nslu2-binary-only/nslu2-unslung-ramdisk/unsling b/nslu2-binary-only/nslu2-unslung-ramdisk/unsling index e69de29bb2..f0345aba70 100644 --- a/nslu2-binary-only/nslu2-unslung-ramdisk/unsling +++ b/nslu2-binary-only/nslu2-unslung-ramdisk/unsling @@ -0,0 +1,113 @@ +#!/bin/sh + +# Only do this if we have booted from the ramdisk. + +if [ "`cat /proc/sys/kernel/real-root-dev`" != 256 ] ; then + echo "Cannot unsling an active unslung root partition!" + exit 0 +fi + +# Set or seach for target disk + +if [ $# -gt 1 ] ; then + echo "Usage: $0 [flash|hdd]" + exit 1 +fi + +if [ $# -eq 1 ] ; then + if [ "$1" = "flash" -o "$1" = "hdd" ] ; then + targ=/share/$1/conf + else + echo "Usage: $0 [flash|hdd]" + exit 1 + fi +elif [ -d /share/hdd/conf/lost+found ] ; then + targ=/share/hdd/conf +elif [ -d /share/flash/conf/lost+found ] ; then + targ=/share/flash/conf +else + echo "Cannot locate target root partition" + exit 1 +fi + +echo "Target root partition is $targ" + +echo "Removing conflicts from old unslung root partition." +rm -f $targ/bin/ipkg + +# Unsling it! + +copyfiles=".unslung bin dev etc home lib linuxrc mnt sbin usr" + +echo "Copying ramdisk files to new unslung root partition." +cd / +tar cf - $copyfiles | ( cd $targ ; tar xf - ) + +# Create other required directories. + +echo "Creating required mount points and empty directories." + +rm -rf $targ/tmp && mkdir $targ/tmp + +[ ! -d $targ/share ] && mkdir $targ/share +[ ! -d $targ/share/flash ] && mkdir $targ/share/flash +[ ! -d $targ/share/flash/conf ] && mkdir $targ/share/flash/conf +[ ! -d $targ/share/flash/data ] && mkdir $targ/share/flash/data +[ ! -d $targ/share/hdd ] && mkdir $targ/share/hdd +[ ! -d $targ/share/hdd/conf ] && mkdir $targ/share/hdd/conf +[ ! -d $targ/share/hdd/data ] && mkdir $targ/share/hdd/data +[ ! -d $targ/mnt ] && mkdir $targ/mnt +[ ! -d $targ/mnt/backup ] && mkdir $targ/mnt/backup +[ ! -d $targ/mnt/repair ] && mkdir $targ/mnt/repair +[ ! -d $targ/mnt/tmpmnt ] && mkdir $targ/mnt/tmpmnt +[ ! -d $targ/proc ] && mkdir $targ/proc +[ ! -d $targ/upload ] && mkdir $targ/upload +[ ! -d $targ/var ] && mkdir $targ/var +[ ! -d $targ/var/empty ] && mkdir $targ/var/empty +[ ! -d $targ/var/lock ] && mkdir $targ/var/lock +[ ! -d $targ/var/log ] && mkdir $targ/var/log +[ ! -d $targ/var/run ] && mkdir $targ/var/run +[ ! -d $targ/var/tmp ] && mkdir $targ/var/tmp + +# Ensure /unslung is there. + +if [ ! -d $targ/unslung ] ; then + + echo "Creating new /unslung directory on unslung root partition." + + mkdir $targ/unslung + +else + echo "Preserving existing /unslung directory on unslung root partition." +fi + +# Ensure /root is there. + +if [ ! -d $targ/root ] ; then + + echo "Creating new /root directory on unslung root partition." + + mkdir $targ/root + +else + echo "Preserving existing /root directory on unslung root partition." +fi + +# Ensure /opt is there. + +if [ ! -d $targ/opt ] ; then + + echo "Creating new /opt directory on unslung root partition." + + mkdir $targ/opt + +else + echo "Preserving existing /opt directory on unslung root partition." +fi + +echo "Unslinging any default root passwords." + +[ -f $targ/passwd ] && sed -i -e 's/^root:WeeOvKUvbQ6nI:0:0:root:/root:t1PLUeOinN\/eI:0:0:root:/' $targ/passwd +[ -f $targ/usr/local/passwd ] && sed -i -e 's/^root:WeeOvKUvbQ6nI:0:0:root:/root:t1PLUeOinN\/eI:0:0:root:/' $targ/usr/local/passwd + +exit 0 diff --git a/nslu2-binary-only/nslu2-unslung-ramdisk_2.3r25.oe b/nslu2-binary-only/nslu2-unslung-ramdisk_2.3r25.oe index ea5bfd0f04..b45ff2d34a 100644 --- a/nslu2-binary-only/nslu2-unslung-ramdisk_2.3r25.oe +++ b/nslu2-binary-only/nslu2-unslung-ramdisk_2.3r25.oe @@ -1,38 +1,31 @@ SECTION = "base" -PR = "r6" +PR = "r9" -UNSLUNG_VERSION = 2.4-alpha +UNSLUNG_VERSION = 2.7-alpha UNSLUNG_SUFFIX = SRC_URI = "http://www.nslu2-linux.org/nslu2-linksys-ramdisk-2.3r25.tar.bz2 \ file://linuxrc \ + file://flashfs \ file://rc.unslung \ file://unsling \ file://unslung.patch \ file://ipkg.conf" S = "${WORKDIR}/nslu2-linksys-ramdisk-2.3r25" -ROOT_NEW_DIRS = "/opt" -ROOT_NEW_FILES = ".unslung linuxrc" -SBIN_NEW_FILES = "unsling" -ETC_PATCHED_FILES = "passwd rc" -ETC_NEW_FILES = "profile ipkg.conf" -RC_PATCHED_FILES = "rc.1 rc.crond rc.halt rc.local rc.modules \ - rc.network rc.quickset rc.quota rc.reboot \ - rc.reset_usrgrpshare rc.rstimezone rc.samba \ - rc.sysinit rc.thttpd rc.xinetd" -RC_NEW_FILES = "rc.unslung" -HTML_PATCHED_FILES = "home.htm" -LOCAL_PATCHED_FILES = "passwd" - do_compile () { - cp ${WORKDIR}/linuxrc ${S}/linuxrc - cp ${WORKDIR}/unsling ${S}/sbin/unsling - cp ${WORKDIR}/ipkg.conf ${S}/etc/ipkg.conf - cp ${WORKDIR}/rc.unslung ${S}/etc/rc.d/rc.unslung sed -e s/X.Y/${UNSLUNG_VERSION}${UNSLUNG_SUFFIX}/ ${WORKDIR}/unslung.patch | patch -d ${S} -p3 sed -i -e s/@version#/@version#-uNSLUng-${UNSLUNG_VERSION}${UNSLUNG_SUFFIX}/ ${S}/home/httpd/html/home.htm + sed -i -e 's|> <|><a href="Unslung" class="mainmenu" target="_top">Unslung Doco</a><|' \ + ${S}/home/httpd/html/manhead.htm + install -m 755 ${WORKDIR}/linuxrc ${S}/linuxrc + install -m 755 ${WORKDIR}/flashfs ${S}/sbin/flashfs + install -m 755 ${WORKDIR}/unsling ${S}/sbin/unsling + install -m 755 ${WORKDIR}/rc.unslung ${S}/etc/rc.d/rc.unslung + install -m 755 ${WORKDIR}/ipkg.conf ${S}/etc/ipkg.conf + install -d ${S}/opt/doc + ln -s /opt/doc ${S}/home/httpd/html/Unslung } do_install () { |