Here's The Code::
(I Still Own it xD)
The main (1st error) is removed and replaced with the sands line
The Main Error (Fixed Though)
Code: Select all
#iMount Process
#iDevice
if [ $IDEV = "iPod" ]; then
fty=/mnt/$name-iPod
elif [ $IDEV = "iPhone" ]; then
fty=/mnt/$name-iPhone
elif [ $IDEV = "iPad" ]; then
fty=/mnt/$name-iPad
fi
#Mount
if [ $mnt2 = "/" ]; then
mnt3=/
elif [ $mnt2 = "/var/mobile" ]; then
mnt3=/var/mobile
fi
Code: Select all
!/bin/bash
#iMount 1.7
export CHOOSER="
<window title=\"iMount 1.7 by Lord_Solrac2\"icon-name=\"gtk-cdrom\">
<vbox>
<frame Select an iDevice>
<combobox>
<variable>IDEV</variable>
<item>iPod</item>
<item>iPhone</item>
<item>iPad</item>
</combobox>
</frame>
<frame Select Mount Area>
<combobox>
<variable>mnt2</variable>
<item>/</item>
<item>/var/mobile</item>
</combobox>
</frame>
<frame What's Your Name?>
<hbox>
<entry editable=\"true\">
<variable>name</variable>
</entry>
</hbox>
</frame>
<frame IP Address (Settings > Wifi > Connection = DHCP) >
<hbox>
<entry editable=\"true\">
<variable>ipa</variable>
</entry>
</hbox>
</frame>
<hbox>
<button>
<variable>start</variable>
<input file icon=\"gkt0ok\"></imput>
<label>Start iMount (Remember Pass = alpine)<label>
<visible>true</visible>
<action type=\"exit\">EXIT_NOW</action>
</button>
</hbox>
</vbox>
</window>
"
CHOOSER2=='gtkdialog3 --program=CHOOSER --center'
if [ "`echo $CHOOSER2 | grep EXIT_NOW`" != "" ]; then
exit 0
fi
urxvt -e sshfs root@$ipa:$mnt2 /mnt/$name-$IDEV