Inital automatic setup of the AB service
This commit is contained in:
parent
5bb0c72b5d
commit
d05bf0244f
2 changed files with 27 additions and 0 deletions
12
AB.service
Normal file
12
AB.service
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Mac like automatic brightness as service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=no
|
||||
RestartSec=1
|
||||
|
||||
ExecStart=/usr/local/bin/AutomaticBrightness.sh
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
15
setup.sh
Executable file
15
setup.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/bash
|
||||
echo "Setting up AutomaticBrightness.sh as a service..."
|
||||
|
||||
echo "Cloning AutomaticBrighness.sh..."
|
||||
sudo cp AutomaticBrightness.sh /usr/local/bin/
|
||||
|
||||
echo "Cloning AB.service for systemD"
|
||||
sudo cp AB.service /etc/systemd/system/
|
||||
|
||||
echo "Startin Service..."
|
||||
sudo systemctl enable AB
|
||||
sudo systemctl start AB
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue