PDA

View Full Version : Mobilinux : need your help



konata_fan337
03-31-2012, 03:55 PM
hi, im the creator of mobilinux and it allows you to run a full desktop on your phone and uses little memory as possible
and i need your help! currently everything works when i begin the boot process and it works in that nature but as i shut it down the terminal will lock up and the script will not continue. i ran it on the computer via the adb shell and when i go to the part where it freeze's and the shell exits with code 1. and i believe it stops at the following command "fuser -km /mnt/linux" and thats used to stop all the process that are access the directory.

it works by useing lboot (with i created ;) ) and that programs runs boot.lbs after that has finished aka you shut it down it goes to post.lbs and that is where it has the problum.

here is the contents of the post.lbs (note: there just like sh files)

############### lboot script ##################
#####Shutdown Linux
echo "[007] START POST - Shutdown linux"
echo "[006] Sending Kill Signals..........."
export bin=/system/xbin
fuser -km /mnt/linux/proc
fuser -km /mnt/linux/dev/pts
fuser -km /mnt/linux/media/sdcard
fuser -km /mnt/linux/sys
busybox fuser -k /mnt/linux <<<< Fails here
#####Shutdown Linux (new)
#echo "[013] Sending Kill Signals..........."
#for pid in `lsof | grep /mnt/linux | sed -e's/ / /g' | cut -d' ' -f2`; do kill -9 $pid >/dev/null 2>&1; done
echo "[015] Syncing Filesystems..."
sync
######Unmount Drives
echo "[019] Unmounting Filesystem..."
umount -l /mnt/linux/media/sdcard
umount -l /mnt/linux/dev/pts
umount -l /mnt/linux/proc
umount -l /mnt/linux/sys
umount -l /mnt/linux
if [ $ANFS == 1 ]
then
echo "[027] Unmounting Androids Filesystem..."
umount -f /mnt/linux/media/system
umount -f /mnt/linux/media/data
fi
######Remove Loop Device
echo "[032] Removeing loop device..."
losetup -d /dev/block/loop99
######Remove Directorys
echo "[035] Removeing mount points..."
if [ $ANFS == 1 ]
then
rmdir /mnt/linux/media/system
rmdir /mnt/linux/media/data
fi
rmdir /mnt/linux/media/sdcard
rmdir /mnt/linux/media
rmdir /mnt/linux/sys
rmdir /mnt/linux/proc
rmdir /mnt/linux/dev/pts
rmdir /mnt/linux/dev
rmdir /mnt/linux
echo "[048] END OF POST"

for more info on the project MobiLinux | Linux Desktop for Android | Free software downloads at SourceForge.net (http://sourceforge.net/projects/mobile-linux/)