Adds systemd scripts for hardware access and modem

Jonathan Hodgson 4 years ago
parent e03e97f832
commit 967e73f806
  1. 1
      .gitignore
  2. 9
      systemd/.config/systemd/user/monitorModem.service
  3. 9
      systemd/ROOT/etc/systemd/system/pinephone-hardware-access.service

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

@ -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…
Cancel
Save