mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-12 18:13:50 +02:00
odroid-u2-base: remove dup files.
This commit is contained in:
parent
7da0901c04
commit
e2f556823d
3 changed files with 0 additions and 62 deletions
|
@ -1,48 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
usage() {
|
|
||||||
cat >&2 <<EOF
|
|
||||||
usage: $0 [enable|disable]
|
|
||||||
EOF
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
die() {
|
|
||||||
echo $@ >&2
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
LED=/sys/class/leds/led1/brightness
|
|
||||||
MAXLED=/sys/class/leds/led1/max_brightness
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if [ $# -eq 1 ]; then
|
|
||||||
[ -z "$1" ] && usage
|
|
||||||
behavior=$1
|
|
||||||
elif [ $# -gt 1 ]; then
|
|
||||||
usage;
|
|
||||||
elif [ -f /etc/default/odroid-led ]; then
|
|
||||||
. /etc/default/odroid-led
|
|
||||||
behavior=$LED_BOOT_BEHAVIOR
|
|
||||||
auto_config=1
|
|
||||||
else
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
case "$behavior" in
|
|
||||||
enable)
|
|
||||||
[ -f $LED -a -f $MAXLED ] || die "LED control file can not be found"
|
|
||||||
echo 0 > $LED
|
|
||||||
cat $MAXLED > $LED
|
|
||||||
;;
|
|
||||||
disable)
|
|
||||||
[ -f $LED ] || die "LED control file can not be found"
|
|
||||||
echo 0 > $LED
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
[ "$auto_config" ] || usage
|
|
||||||
exit 0;
|
|
||||||
;;
|
|
||||||
esac
|
|
|
@ -1,5 +0,0 @@
|
||||||
# LED_BOOT_BEHAVIOR: Control the behavior of the blue LED on boot
|
|
||||||
# enable: turn LED on
|
|
||||||
# disable: turn LED off
|
|
||||||
# auto: do nothing (LED will blink)
|
|
||||||
LED_BOOT_BEHAVIOR=enable
|
|
|
@ -1,9 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Sets Odroids LED on boot
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/sbin/odroid-led
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
Loading…
Add table
Reference in a new issue