Adds systemd scripts for hardware access and modem
This commit is contained in:
parent
d37cbdd99c
commit
4aadb457b2
3 changed files with 19 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,5 +9,6 @@ mutt/accounts/*
|
|||
/qutebrowser/.config/qutebrowser/autoconfig.yml
|
||||
/bin/.bin/pappy
|
||||
/systemd/.config/systemd/user/timers.target.wants/
|
||||
/systemd/.config/systemd/user/default.target.wants/
|
||||
nvim/.config/nvim/.netrwhist
|
||||
remind/.local/share/remind/work.rem
|
||||
|
|
9
systemd/.config/systemd/user/monitorModem.service
Normal file
9
systemd/.config/systemd/user/monitorModem.service
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue