DESC="OpenPandora Save and Restore various settings"
NAME="pandora-state"
-. /usr/pandora/scripts/op_paths.sh
+. /usr/pandora/scripts/op_common.sh
d_stop() {
echo "Saving Pandora specific settings"
fi
touch /etc/pandora/shutdown
cat $SYSFS_GAMMA > /etc/pandora/conf/gamma.state
+
+ # pnd_run.sh and nub configurator depend on nubs.state format
cat -v /proc/pandora/nub0/mode | sed -n '1p' > /etc/pandora/conf/nubs.state
cat -v /proc/pandora/nub0/mouse_sensitivity | sed -n '1p' >> /etc/pandora/conf/nubs.state
cat -v /proc/pandora/nub0/scrollx_sensitivity | sed -n '1p' >> /etc/pandora/conf/nubs.state
cat -v /proc/pandora/nub1/mbutton_threshold | sed -n '1p' >> /etc/pandora/conf/nubs.state
cat -v /proc/pandora/nub0/mbutton_delay | sed -n '1p' >> /etc/pandora/conf/nubs.state
cat -v /proc/pandora/nub1/mbutton_delay | sed -n '1p' >> /etc/pandora/conf/nubs.state
+
+ # nub tools want to update this file
+ chmod a+w /etc/pandora/conf/nubs.state
}
d_start() {