summaryrefslogtreecommitdiff
path: root/init.sh
diff options
context:
space:
mode:
Diffstat (limited to 'init.sh')
-rwxr-xr-xinit.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/init.sh b/init.sh
new file mode 100755
index 0000000..6105698
--- /dev/null
+++ b/init.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# start/stop luminous setup
+#
+# This only sets the permissions on the brightness
+
+case $1 in
+ start)
+ chmod 666 /sys/class/backlight/*/brightness
+ ;;
+ stop)
+ chmod 644 /sys/class/backlight/*/brightness
+ ;;
+ *)
+ printf "usage: $0 [start|stop]\n"
+ ;;
+esac

Generated by cgit