[misc] move sshd/exfat/axel out of env.sh

This commit is contained in:
Klesh Wong 2020-10-29 14:23:39 +08:00
parent 8519402db3
commit 060f02c9ef
3 changed files with 30 additions and 6 deletions

6
env.sh
View File

@ -66,9 +66,7 @@ case "$PM" in
sudo apt install \ sudo apt install \
build-essential \ build-essential \
unzip p7zip \ unzip p7zip \
openssh-server openssh-client \ openssh-client \
exfat-utils \
axel \
man sudo man sudo
;; ;;
pacman) pacman)
@ -76,8 +74,6 @@ case "$PM" in
base-devel \ base-devel \
unzip p7zip \ unzip p7zip \
openssh \ openssh \
exfat-utils \
axel \
man sudo man sudo
# install yay # install yay
if ! which yay; then if ! which yay; then

View File

@ -23,6 +23,10 @@ case "$PM" in
bluez bluez-tools blueman pulseaudio-module-bluetooth bluez bluez-tools blueman pulseaudio-module-bluetooth
sudo systemctl enable bluetooth sudo systemctl enable bluetooth
sudo systemctl start bluetooth sudo systemctl start bluetooth
# system utils
sudo apt install \
exfat-utils \
axel
fi fi
;; ;;
pacman) pacman)
@ -60,7 +64,10 @@ case "$PM" in
sudo systemctl start bluetooth sudo systemctl start bluetooth
fi fi
# for setting up default programs: exo-preferred-applications # for setting up default programs: exo-preferred-applications
sudo pacman -S --needed exo sudo pacman -S --needed
exfat-utils \
axel \
exo
;; ;;
esac esac

21
gui/sshd.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/bash
DIR=$(readlink -f $(dirname $0))
. $DIR/../env.sh
# install sshd
case "$PM" in
apt)
sudo apt install \
openssh-server
;;
pacman)
sudo pacman -S --needed \
openssh
;;
esac
# start network
sudo systemctl enable ssh
sudo systemctl start ssh