blob: 22c09544a020fe9867cb24f3a4859e47887b9916 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
squashfs_mount () {
modprobe -q squashfs
mkdir $2
mount -t squashfs $1 $2
}
for arg in $CMDLINE; do
optarg=`expr "x$arg" : 'x[^=]*=\(.*\)'`
echo $arg xxx $optarg
case $arg in
squashfs=*)
dev=`expr "$optarg" : '\([^:]*\).*'`
path=`expr "$optarg" : '[^:]*:\([^:]*\).*'`
squashfs_mount $dev $path ;;
esac
done
|