+
+ if ! ps a | grep -q 'pnd_run.*run_gingerbread.sh'; then
+ # something killed pnd_run, have to clean up for it
+ cat > /tmp/clean_android.sh <<EOF
+ #!/bin/bash
+ trap '' HUP
+ sleep 3
+ umount $mpoint_main
+ umount $mpoint_main # needed twice??
+ losetup -a | awk -F ':' '{ print \$1 }' | xargs losetup -d 2> /dev/null
+ rm $0
+EOF
+ cd /tmp/
+ chmod +x /tmp/clean_android.sh
+ /tmp/clean_android.sh &
+ sleep 1
+ fi
+ exit $exitcode