|
|
|
@ -12,13 +12,13 @@ For example: Asus laptop extras, ThinkPad ACPI Laptop Extras, etc.
|
|
|
|
|
## Usage:
|
|
|
|
|
Execute the script as a root user:
|
|
|
|
|
```
|
|
|
|
|
/usr/bin/battery_status_led.sh
|
|
|
|
|
/usr/bin/battery-status-led.sh
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Or start with systemd:
|
|
|
|
|
```
|
|
|
|
|
systemctl start battery_status_led
|
|
|
|
|
systemctl enable battery_status_led
|
|
|
|
|
systemctl start battery-status-led
|
|
|
|
|
systemctl enable battery-status-led
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
The LED device can be changed by editing the systemd service file's line:
|
|
|
|
@ -29,18 +29,18 @@ Environment="BATTERY_STATUS_LED_DEV=/sys/class/leds/input4\:\:capslock"
|
|
|
|
|
## Manual install on gentoo:
|
|
|
|
|
```
|
|
|
|
|
cd DIR
|
|
|
|
|
git clone https://github.com/dmatetelki/battery_status_led
|
|
|
|
|
git clone https://github.com/dmatetelki/battery-status-led
|
|
|
|
|
cd /usr/local/portage/app-misc/
|
|
|
|
|
ln -s DIR/battery_status_led/app-misc/battery_status_led battery_status_led
|
|
|
|
|
ebuild battery_status_led-0.1.ebuild digest
|
|
|
|
|
emerge battery_status_led
|
|
|
|
|
ln -s DIR/battery-status-led/app-misc/battery-status-led battery-status-led
|
|
|
|
|
ebuild battery-status-led-0.1.ebuild digest
|
|
|
|
|
emerge battery-status-led
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Creating a debian package and installing it:
|
|
|
|
|
```
|
|
|
|
|
cd DIR
|
|
|
|
|
git clone https://github.com/dmatetelki/battery_status_led
|
|
|
|
|
cd battery_status_led/debian
|
|
|
|
|
git clone https://github.com/dmatetelki/battery-status-led
|
|
|
|
|
cd battery-status-led/debian
|
|
|
|
|
./package.deb
|
|
|
|
|
sudo dpkg -i ./batterystatusled_0.1-1.deb
|
|
|
|
|
```
|
|
|
|
@ -48,10 +48,10 @@ sudo dpkg -i ./batterystatusled_0.1-1.deb
|
|
|
|
|
## Creating RPM package and installing it:
|
|
|
|
|
```
|
|
|
|
|
cd DIR
|
|
|
|
|
git clone https://github.com/dmatetelki/battery_status_led
|
|
|
|
|
cd battery_status_led/redhat
|
|
|
|
|
git clone https://github.com/dmatetelki/battery-status-led
|
|
|
|
|
cd battery-status-led/redhat
|
|
|
|
|
./package.rpm
|
|
|
|
|
sudo rpm -i ./battery_status_led-0.1-1.noarch.rpm
|
|
|
|
|
sudo rpm -i ./battery-status-led-0.1-1.noarch.rpm
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Note:
|
|
|
|
|