[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 \
build-essential \
unzip p7zip \
openssh-server openssh-client \
exfat-utils \
axel \
openssh-client \
man sudo
;;
pacman)
@ -76,8 +74,6 @@ case "$PM" in
base-devel \
unzip p7zip \
openssh \
exfat-utils \
axel \
man sudo
# install yay
if ! which yay; then

View File

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