diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-07-15 19:39:06 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2024-07-15 19:39:06 +0900 |
| commit | f91d30aad8058f37b2cab4d5df2d9993fe68d7d6 (patch) | |
| tree | c296231ffc16caaa80c28fa813e9c54524e60eba /static/thesiah.sh | |
| parent | 9f70035ec7de96fcd707948350bcf838c4e116ca (diff) | |
Init
Diffstat (limited to 'static/thesiah.sh')
| -rwxr-xr-x | static/thesiah.sh | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/static/thesiah.sh b/static/thesiah.sh index 8f2db0f..0d9b83a 100755 --- a/static/thesiah.sh +++ b/static/thesiah.sh @@ -330,7 +330,7 @@ addsudo() { echo "Defaults editor=/usr/bin/nvim" >/etc/sudoers.d/02-thesiah-visudo-editor mkdir -p /etc/sysctl.d echo "kernel.dmesg_restrict = 0" >/etc/sysctl.d/dmesg.conf - + # Cleanup rm -f /etc/sudoers.d/thesiah-temp } @@ -388,7 +388,7 @@ ufwsetup() { ufw --force reload >/dev/null 2>&1 sleep 1 case "$initsys" in - "runit") + "runit") ln -sf /etc/runit/sv/ufw /run/runit/service/ >/dev/null 2>&1 sleep 1 sv start ufw >/dev/null 2>&1 || sv force-restart ufw >/dev/null 2>&1 @@ -408,7 +408,7 @@ ufwsetup() { sambasetup() { whiptail --infobox "Setting up samba..." 7 50 - [ -x "$(command -v "samba")" ] || installpkg samba + [ -x "$(command -v "samba")" ] || installpkg samba pacman -Qq samba-"$initsys" >/dev/null 2>&1 || installpkg samba-"$initsys" sleep 1 ufw allow 137/tcp >/dev/null 2>&1 @@ -423,7 +423,7 @@ sambasetup() { printf "$pass1" | smbpasswd -a "$name" >/dev/null 2>&1 sleep 1 case "$initsys" in - "runit") + "runit") ln -sf /etc/runit/sv/smbd /run/runit/service/ >/dev/null 2>&1 ln -sf /etc/runit/sv/nmbd /run/runit/service/ >/dev/null 2>&1 sleep 1 @@ -459,7 +459,7 @@ bluezsetup() { pacman -Qq bluez-"$initsys" >/dev/null 2>&1 || installpkg bluez-"$initsys" sleep 3 case "$initsys" in - "runit") + "runit") ln -sf /etc/runit/sv/bluetoothd /run/runit/service/ >/dev/null 2>&1 sleep 1 sv start bluetoothd >/dev/null 2>&1 || sv force-restart bluetoothd >/dev/null 2>&1 @@ -483,7 +483,7 @@ cronsetup() { pacman -Qq cronie-"$initsys" >/dev/null 2>&1 || installpkg cronie-"$initsys" sleep 1 case "$initsys" in - "runit") + "runit") ln -sf /etc/runit/sv/cronie /run/runit/service/ >/dev/null 2>&1 sleep 1 sv start cronie >/dev/null 2>&1 || sv force-restart cronie >/dev/null 2>&1 @@ -511,7 +511,7 @@ cronsetup() { tlpsetup() { whiptail --infobox "Setting up tlp..." 7 50 - [ -x "$(command -v "tlp")" ] || installpkg tlp + [ -x "$(command -v "tlp")" ] || installpkg tlp pacman -Qq tlp-"$initsys" >/dev/null 2>&1 || installpkg tlp-"$initsys" sleep 1 echo "TLP_DEFAULT_MODE=AC @@ -520,7 +520,7 @@ STOP_CHARGE_THRESH_BAT0=80 START_CHARGE_THRESH_BAT1=50 STOP_CHARGE_THRESH_BAT1=75" > /etc/tlp.d/01-battery.conf case "$initsys" in - "runit") + "runit") ln -sf /etc/runit/sv/tlp /run/runit/service/ >/dev/null 2>&1 sleep 1 sv start tlp >/dev/null 2>&1 || sv force-restart tlp >/dev/null 2>&1 @@ -541,12 +541,12 @@ STOP_CHARGE_THRESH_BAT1=75" > /etc/tlp.d/01-battery.conf sshsetup() { whiptail --infobox "Setting up ssh..." 7 50 - [ -x "$(command -v "ssh")" ] || installpkg openssh + [ -x "$(command -v "ssh")" ] || installpkg openssh pacman -Qq openssh-"$initsys" >/dev/null 2>&1 || installpkg openssh-"$initsys" sleep 1 sed -Ei "s/^#?(PasswordAuthentication).*/\1 no/;s/^#?(UsePAM).*/\1 no/" /etc/ssh/sshd_config case "$initsys" in - "runit") + "runit") ln -sf /etc/runit/sv/sshd /run/runit/service/ >/dev/null 2>&1 sleep 1 sv start sshd >/dev/null 2>&1 || sv force-restart sshd >/dev/null 2>&1 |
