2015-07-31

Slitaz -- sed: unsupported command |

sed: unsupported command |

root@slitaz:~# cat /proc/cmdline
mount=/dev/sda3 loopfs=slitaz.fs

root@slitaz:~# head -4 /var/log/boot.log
Mount /dev/sda3...
sed: unsupported command |
Into file slitaz.fs...
[ Done ]


root@slitaz:~# grep -A 13 'mnt()' /init
mnt()
{
r=$(blkid 2> /dev/null | sed "s|\"||g;|$root|!d;s|:.*||;q")
r=${r:-$root}
r=${r#/dev/}
r=/dev/${r%%/*}
d=${root#*$r}
busybox mount $r $1 && return
w=$(cat /sys/module/usb_storage/parameters/delay_use)
w=$((1+${w:-2}))
echo -n "Sleep $w seconds..."
sleep $w
busybox mount $r $1
}