RDEPENDS = "bash sed gawk grep zenity"
-PR = "r162"
+PR = "r163"
SRC_URI = " \
file://op_bright.sh \
import gtk
import time
import optparse
+import shutil
# ================================================================
def on_WriteNubConfig_clicked(self, widget, *data):
StoreProc(self.model.settings)
+ shutil.copyfile("/etc/pandora/conf/nubs.state", "/tmp/nubs.state");
+ os.system("sed -i -e '1c\%s' /tmp/nubs.state" % self.model.settings['mode0'])
+ os.system("sed -i -e '7c\%s' /tmp/nubs.state" % self.model.settings['mode1'])
+ shutil.copyfile("/tmp/nubs.state", "/etc/pandora/conf/nubs.state");
self.Notify("Nub configuration updated.")
def on_SaveProfile_clicked(self, widget, *data):
RDEPENDS = "pandora-scripts"
-PR = "r23"
+PR = "r24"
inherit update-rc.d
INITSCRIPT_NAME = "pandora-state"
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() {