07070100C6708A000041ED0000000000000000000000024D48AB1200000000000000FE0000001100000000000000000000000200000000.07070100C6708E000081A40000000000000000000000014D48AB1200000079000000FE0000001100000000000000000000000700000000md5sume91a109bc6c60ac99769a68973609ced /etc/tazlito/loram.extract 268d815c6f4e5da3526c87627d1a0beb /etc/tazlito/loram.rootfs 07070100C6708D000081A40000000000000000000000014D48AB1100000035000000FE0000001100000000000000000000000B00000000files.list/etc/tazlito/loram.extract /etc/tazlito/loram.rootfs 07070100C6708F000081A40000000000000000000000014D48AB1200000522000000FE0000001100000000000000000000000D00000000fs.cpio.lzma] c R#kG"D L+?VaI4ThI,D,m率 .aꋒ7w>NKqc}-VVV:uE"8cëʷ[\űo*vYLRN&gK] +)ڄ}Q^3; )wPeزMGpnao {m=vus!kR2 tN$ .\x$ K@Cũ<-F0. nhe2%i:#eبzcЈ6LI| %F9&p @nڑBXSNQ S;.qs3ܶ&.2% cf{%K {@xZY~Zz`nZiڠ+=eD}AIIiu-7i55Pm2!_O07070100C6708C000081A40000000000000000000000014D48AB12000013E1000000FE0000001100000000000000000000000800000000receipt# SliTaz package receipt. PACKED_SIZE="20.0K" UNPACKED_SIZE="36.0K" PACKAGE="slitaz-loram-http" VERSION="1.6" CATEGORY="misc" SHORT_DESC="Rules to build low ram system using http." MAINTAINER="pascal.bellard@slitaz.org" WEB_SITE="http://www.slitaz.org/" DEPENDS="slitaz-boot-scripts tazlito httpfs-fuse funionfs" # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/etc/tazlito cp stuff/loram.* $fs/etc/tazlito } set_patch() { local tag local line local len local i tag="Handle kernel cmdline parameter config" i=$(grep -n "$tag" $1/etc/init.d/rcS | cut -d: -f1) i=$(($i-1)) len=89 tag=$(grep "$tag" $1/etc/init.d/rcS) if [ "$2" = "-R" ]; then line="-$(($i-$len+2)),$len +$(($i-$len+2)),2" i="-" else grep -q 'from slitaz-loram-http package' $1/etc/init.d/rcS && return line="-$i,2 +$i,$len" i="+" fi busybox patch -p0 < /dev/null $i return 0 $i fi $i fi $i echo -n "Loading /usr in memory..." $i cp -a \$FS /.usr.fs $i status $i echo -n "Releasing HTTP link..." $i umount /cdrom && umount /cdrom $i FS=/.usr.fs $i if [ -d \$FS ]; then $i rm -f /\$usr $i mv \$FS /usr $i fi $i fi $i return 1 $i } $i $i# Mount /usr (from slitaz-loram-http package) $i while [ -d /cdrom ]; do $i /etc/init.d/network.sh $i RUN_SCRIPTS="\$(echo \$RUN_SCRIPTS | sed 's/network.sh//')" $i release=\$(cat /etc/slitaz-release) $i iso1=iso/\$release/flavors/slitaz-\$release-loram-cdrom.iso $i iso2=iso/\$release/flavors/slitaz-loram-cdrom.iso $i URLISO=http://mirror.slitaz.org/\$iso1,http://mirror.slitaz.org/\$iso2,http://download.tuxfamily.org/slitaz/\$iso1,http://download.tuxfamily.org/slitaz/\$iso2,http://slitaz.c3sl.ufpr.br/\$iso1,http://slitaz.c3sl.ufpr.br/\$iso2 $i grep -q " urliso=" /proc/cmdline && URLISO=\$(cat /proc/cmdline | sed 's/.* urliso=\([^ ]*\).*/\1/'),\$URLISO $i for i in \$(echo \$URLISO | sed 's/,/ /g'); do $i /bin/httpfs \$i /cdrom && break $i done $i mount -o loop,ro /cdrom/*.iso /cdrom $i if [ -d /.usr.rw -a -x /bin/funionfs ]; then $i echo -n "Mounting /usr read-write... " $i usr=.usr.ro $i else $i echo -n "Mounting /usr read-only... " $i usr=usr $i fi $i FS=/cdrom/usr.cromfs $i if [ -f \$FS ]; then $i mkdir /\$usr $i ln -s /usr/.moved /.moved $i release_http && break $i /bin/cromfs-driver \$FS /\$usr -o ro,dev,suid,allow_other $i elif grep -q squashfs /etc/filesystems && [ -f /cdrom/usr.sqfs ]; then $i FS=/cdrom/usr.sqfs $i ln -s /usr/.moved /.moved $i mkdir /\$usr $i release_http && break $i mount -o loop,ro -t squashfs \$FS /\$usr $i elif grep -q squashfs /etc/filesystems && [ -f /cdrom/rootfs.gz ]; then $i FS=/cdrom/rootfs.gz $i ln -s /.rootfs /.moved $i mkdir /.rootfs $i release_http && break $i mount -o loop,ro -t squashfs \$FS /.rootfs $i ln -s /.rootfs/usr /\$usr $i elif [ -d /cdrom/usr ]; then $i FS=/cdrom/usr $i ln -s /usr/.moved /.moved $i rm -rf /\$usr && ln -s \$FS /\$usr $i else $i FS=/cdrom/fs/usr $i ln -s /cdrom/fs /.moved $i rm -rf /\$usr && ln -s \$FS /\$usr $i fi $i status $i if [ -d /.usr.rw -a -x /bin/funionfs ]; then $i /bin/funionfs -o dirs=/.usr.ro=RO:/.usr.rw -o allow_other,nonempty -o suid,dev NONE /usr $i fi $i break $i done $i $tag EOF chmod 0755 $1/etc/init.d/rcS } # Pre and post install commands for Tazpkg. pre_install() { local i for i in $(cd /var/lib/tazpkg/installed ; ls -d slitaz-loram* 2> /dev/null); do [ "$i" = "$PACKAGE" ] && continue yes y | tazpkg remove $i . /etc/tazlito/tazlito.conf rm -f $PACKAGES_REPOSITORY/slitaz-boot-scripts-*.tazpkg 2> /dev/null done } post_install() { set_patch "$1" # Don't support FAST_BOOT_X yet sed -i 's/FAST_BOOT_X=.*/FAST_BOOT_X="no"/' $1/etc/rcS.conf cat <