diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-09-08 19:25:27 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-09-08 19:25:27 +0200 |
| commit | d7d20982f24757817268b593ead0d6ce9319d535 (patch) | |
| tree | 534118f05c2f4d99299b23a09277e309a60c2530 | |
| parent | fddc968ea17d6016518da4663e35926861e1da8a (diff) | |
| download | dotfiles-d7d20982f24757817268b593ead0d6ce9319d535.tar.gz dotfiles-d7d20982f24757817268b593ead0d6ce9319d535.tar.bz2 dotfiles-d7d20982f24757817268b593ead0d6ce9319d535.zip | |
Replacing hostname command with cat /etc/hostname to avoid depending on unecessary package (inetutils)
| -rwxr-xr-x | install | 2 | ||||
| -rwxr-xr-x | local/bin/backlight-ctl | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -98,7 +98,7 @@ parallel_wait echo '---------------------------- INSTALL CRONTAB -----------------------------' -if [ "$(hostname)" = 'charleslaptopcarbon' ] +if [ "$(cat /etc/hostname)" = 'charleslaptopcarbon' ] then cat crontab/user.crontab crontab/laptop.crontab | crontab - else diff --git a/local/bin/backlight-ctl b/local/bin/backlight-ctl index 1e7f94c..48e51c4 100755 --- a/local/bin/backlight-ctl +++ b/local/bin/backlight-ctl @@ -3,7 +3,7 @@ [ "$#" -ne 1 ] && exit 1; -if [ "$(hostname)" = manjaro ] +if [ "$(cat /etc/hostname)" = manjaro ] then cmd=light up_opt=-A |
