1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #! /bin/sh
- TTYConsole="/dev/console"
- movifs="/mnt/movifs"
- ext3fs="/dev/mmcblk0p1"
- echo "Extracting FS now" > $TTYConsole
- if [ "$1" == ""] ; then
- echo "No device" > $TTYConsole
- exit 0
- fi
- #if [ -d "$movifs" ] ; then
- # echo "$movifs" " Exist !!!" > $TTYConsole
- #else
- echo "create folder " "$mmiFIFO" > $TTYConsole
- mkdir "$movifs"
- #fi
- mkfs.ext3 "$ext3fs"
- if ! mount "$ext3fs" "$movifs" ; then
- echo "mount fail" > $TTYConsole
- exit 0
- fi
- tar -xvf "$1" -C "$movifs"
- umount "$movifs"
- exit 0
|