070701002C23B1000041ED0000000000000000000000024F2FA95B00000000000000FE0000000200000000000000000000000200000000.070701002C23BA000081A40000000000000000000000014F2FA95B00000035000000FE0000000200000000000000000000000B00000000files.list/etc/tazlito/loram.extract /etc/tazlito/loram.rootfs 070701002C23BD000081A40000000000000000000000014F2FA95B00000079000000FE0000000200000000000000000000000700000000md5sum1e722a53f5005da6a14324c0b5563568 /etc/tazlito/loram.extract 955b1692464dc0665002472046b78ed8 /etc/tazlito/loram.rootfs 070701002C23B3000081A40000000000000000000000014F2FA95B0000138F000000FE0000000200000000000000000000000800000000receipt# SliTaz package receipt. PACKED_SIZE="20.0k" UNPACKED_SIZE="36.0k" PACKAGE="slitaz-loram-cdrom" VERSION="1.5" CATEGORY="misc" SHORT_DESC="Rules to build low ram system using cdrom." MAINTAINER="pascal.bellard@slitaz.org" WEB_SITE="http://www.slitaz.org/" DEPENDS="slitaz-boot-scripts tazlito" # 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=88 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-cdrom 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 cp -a \$FS /.usr.fs $i status $i echo -n "Releasing CD-ROM..." $i 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-cdrom package) $i if [ -d /cdrom ]; then $i DEVICE=/dev/cdrom $i DIR= $i if grep -q " loram=" /proc/cmdline; then $i DIR=\`cat /proc/cmdline | sed 's/.* loram=\([^ ]*\).*/\1/'\` $i DEVICE=\${DIR%,*} $i DIR=/\${DIR#*,} $i fi $i if ! /bin/mount -r \$DEVICE /cdrom; then $i if echo \$DEVICE | grep -Eq "/dev/sd|UUID=|LABEL="; then $i USBDELAY=\`cat /sys/module/usb_storage/parameters/delay_use\` $i USBDELAY=\$((1+\$USBDELAY)) $i echo "\$DEVICE is potentially a USB device: sleep for \$USBDELAY seconds" $i sleep \$USBDELAY $i fi $i if ! /bin/mount -r \$DEVICE /cdrom; then $i DEVICE="" $i fi $i fi $i while [ -n "\$DEVICE" ]; do $i if [ -d /.usr.rw ]; 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\$DIR/usr.cromfs $i if [ -f \$FS ]; then $i release_cdrom && break $i /bin/cromfs-driver \$FS /\$usr -o ro,dev,suid,allow_other $i elif [ -f /cdrom\$DIR/usr.sqfs ]; then $i FS=/cdrom\$DIR/usr.sqfs $i release_cdrom && break $i mount -o loop,ro -t squashfs \$FS /\$usr $i elif [ -L /\$usr ]; then $i FS=/cdrom\$DIR/usr $i release_cdrom && break $i true $i else $i umount /cdrom $i false $i fi $i status $i if [ -d /.usr.rw ]; then $i if [ -x /bin/funionfs ]; then $i /bin/funionfs -o dirs=/.usr.ro=RO:/.usr.rw -o allow_other -o suid,dev NONE /usr $i else $i /bin/mount -t aufs -o br:/.usr.rw:/.usr.ro none /usr $i fi $i fi $i break $i done $i fi $i $tag EOF tag="/var/log/dmesg.log" i=$(grep -n "$tag" $1/etc/init.d/rcS | cut -d: -f1) len=9 tag=$(grep "$tag" $1/etc/init.d/rcS) if [ "$2" = "-R" ]; then line="-$(($i-$len+2)),$len +$(($i-$len+2)),1" i="-" else line="-$i,1 +$i,$len" i="+" fi busybox patch -p0 < /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 <w6 h7K/^TXōl_2լ(oF@i9V}[XރW,JL}O5ge޶5KU vS(Dqb AŸ%C}EU^ TV?p #naJ\NM.V4a+AI ?:K\lӨD5VzSf )}E A@DMh ϱ#9sZ*Ag3>%+ԬMv/I <b"hyQ̺q_)mr4y2< OrSv_+\:A}BA:b*`+x5RQJ2#tmqSɜ m'!j zgbk3&<5 a]6Ikӣ7~]m}YsePp"6$oN7;b,{kGV]SKզWF*jv*,'Кɇi5 8$%*M"ԥoM&<ަFZ˄˨JPި.z|O2oX\4sgz7}8k1y:l7"U*wdXNUa3T-_M_,…t}5?B"x,rn69ː'溥(2q:1n$YWšk弦<^?ߎxy>نf'j :_E@v64t-~zSMsKX=t`ܸyޣܗ"$5,~"'x Y7K?Q_(xu@i\9Uŗc+b+${dqCdi[56v1Lu.S_ ӌ _oI.xo];Ɏ6{rXE`pCZP7H 2dZ?o-mo琱y>jz3 !ԹTďjBR_{=OWә+Ӱ~&@D,y;nr=dt%4B2^t @!s[}ҧ)NW =(H{+t.z> VMo4ﵗ ;SK?y&fﳂ!.t"N+<;ƉB"{Sp,r1CUZ`{ uҕё'b+#yQ((g' JmH JKj>-T^ P3hos!v/ ekHܖw>;(!Y?{M*Szb :N{⤪%_RAK*k}o?M.jdE_3c] .wko*}IȘaOjk tltxn,TUp9[}_2 *Q v÷G)ۚ̅>dZ^agJr;Uj\}<4`mXPB-N "[PN#@Fx.gE3i-f&Dz܎@[[YU=hzeyiv*!S-+}fti89YN&07070100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B00000000TRAILER!!!