parent
e03e97f832
commit
967e73f806
3 changed files with 19 additions and 0 deletions
@ -0,0 +1,9 @@ |
||||
[Unit] |
||||
Description=Monitor Modem |
||||
|
||||
[Service] |
||||
Environment="PATH=/usr/bin:/usr/local/bin:/home/jonathan/.bin:/home/jonathan/.bin/modem:/home/jonathan/.bin/dmenu" |
||||
ExecStart=/home/jonathan/.bin/modem/monitorModem |
||||
|
||||
[Install] |
||||
WantedBy=default.target |
@ -0,0 +1,9 @@ |
||||
[Unit] |
||||
Description=Enable user access to pinephone hardware kernel interface |
||||
|
||||
[Service] |
||||
Type=oneshot |
||||
ExecStart=/bin/bash -c 'for i in /sys/module/8723cs/parameters/rtw_scan_interval_thr /sys/devices/platform/backlight/backlight/backlight/brightness /sys/power/state /sys/devices/platform/soc/1f00000.rtc/power/wakeup /sys/power/mem_sleep /sys/bus/usb/drivers/usb/unbind /sys/bus/usb/drivers/usb/bind /sys/class/leds/red:indicator/brightness /sys/class/leds/blue:indicator/brightness /sys/class/leds/green:indicator/brightness /sys/class/leds/white:flash/brightness /dev/rtc0 /sys/devices/platform/soc/1f03400.rsb/sunxi-rsb-3a3/axp221-pek/power/wakeup /sys/class/wakeup/*; do [ -e "$i" ] && chmod a+rw "$i" >> /tmp/log 2>&1; done' |
||||
|
||||
[Install] |
||||
WantedBy=multi-user.target |
Loading…
Reference in new issue