nubs: Fixed the scripts so that we won't have tons of vsense errors on 3rd boot
[openpandora.oe.git] / recipes / pandora-system / pandora-scripts / op_nubmode.sh
1 #!/bin/bash
2
3 if nubl=$(zenity --height=300 --list --title="Select Nub-mode for the left nub" --text="Please select the modus for the left nub.\n\nNote: This can affect running programs.\nSome programs also may change the nub mode themselves."  --column "return" --hide-column=1 --column "Nub Mode" "mouse" "Use the nub as mouse" "scroll" "Use the nub for scrolling" "absolute" "Use the nub as joystick") ; then
4
5 echo $nubl > /proc/pandora/vsense66
6
7 fi
8
9 if nubr=$(zenity --height=300 --list --title="Select Nub-mode for the right nub" --text="Please select the modus for the right nub.\n\nNote: This can affect running programs.\nSome programs also may change the nub mode themselves."  --column "return" --hide-column=1 --column "Nub Mode" "mouse" "Use the nub as mouse" "scroll" "Use the nub for scrolling" "absolute" "Use the nub as joystick") ; then
10
11 echo $nubr > /proc/pandora/vsense67
12
13 fi