aboutsummaryrefslogtreecommitdiff
path: root/rootfs/bin/leds
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-07 14:06:30 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-07 14:06:30 +0100
commit612a0afa63144aae338a51c9206a589d4b8fdd65 (patch)
tree679e6676d9ce4b56996874bd5782764da221280a /rootfs/bin/leds
parent70623600744cab314baf1ccc912134456ffe565d (diff)
WIP web server
Diffstat (limited to 'rootfs/bin/leds')
-rwxr-xr-xrootfs/bin/leds5
1 files changed, 5 insertions, 0 deletions
diff --git a/rootfs/bin/leds b/rootfs/bin/leds
new file mode 100755
index 0000000..5fb425e
--- /dev/null
+++ b/rootfs/bin/leds
@@ -0,0 +1,5 @@
+#!/bin/sh
+for i in $(seq 0 3) ; do
+ echo "$1" > "/sys/class/leds/beaglebone:green:usr$i/brightness"
+done
+