fixed coping of files
This commit is contained in:
parent
772b537c3e
commit
aa8aa80fa5
1 changed files with 19 additions and 8 deletions
27
base.sh
27
base.sh
|
@ -121,14 +121,18 @@ if [[ $configuration == 1 ]]; then
|
||||||
systemctl enable sshd
|
systemctl enable sshd
|
||||||
# Netzwerk
|
# Netzwerk
|
||||||
# Ethernet
|
# Ethernet
|
||||||
|
$ethernet_network=$(find / -type f -name 20-ethernet.network | grep configs)
|
||||||
cp ./configs/20-ethernet.network /etc/systemd/network/
|
cp ./configs/20-ethernet.network /etc/systemd/network/
|
||||||
# Wlan
|
# Wlan
|
||||||
cp ./configs/20-wlan.network /etc/systemd/network/
|
$wlan_network=$(find / -type f -name 20-wlan.network | grep configs)
|
||||||
|
cp $wlan_network /etc/systemd/network/
|
||||||
# Wwan (Mobilefunk)
|
# Wwan (Mobilefunk)
|
||||||
cp ./configs/20-wwan.network /etc/systemd/network/
|
$wwan_network=$(find / -type f -name 20-wwan.network | grep configs)
|
||||||
|
cp $wwan_network /etc/systemd/network/
|
||||||
elif [[ $configuration == 2 ]]; then
|
elif [[ $configuration == 2 ]]; then
|
||||||
systemctl enable NetworkManager
|
systemctl enable NetworkManager
|
||||||
cp ./configs/wifi_backend.conf /etc/NetworkManager/conf.d/
|
$wifi_backend_conf=$(find / -type f -name wifi_backend.conf | grep configs)
|
||||||
|
cp $wifi_backend_conf /etc/NetworkManager/conf.d/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
systemctl enable systemd-resolved
|
systemctl enable systemd-resolved
|
||||||
|
@ -165,11 +169,13 @@ fi
|
||||||
bootctl install
|
bootctl install
|
||||||
|
|
||||||
# Bootloaderconfig
|
# Bootloaderconfig
|
||||||
|
$wifi_backend_conf=$(find / -type f -name | grep configs)
|
||||||
cp ./configs/loader.conf /boot/loader/
|
cp ./configs/loader.conf /boot/loader/
|
||||||
|
|
||||||
if [[ $kernel == 1 || $kernel == 2 || $kernel == 3 || $kernel == 4 ]]; then
|
if [[ $kernel == 1 || $kernel == 2 || $kernel == 3 || $kernel == 4 ]]; then
|
||||||
# Entry Arch
|
# Entry Arch
|
||||||
cp ./configs/arch.conf /boot/loader/entries/
|
$arch_conf=$(find / -type f -name arch.conf | grep configs)
|
||||||
|
cp $arch_conf /boot/loader/entries/
|
||||||
if [[ $vendor == 1 ]]; then
|
if [[ $vendor == 1 ]]; then
|
||||||
sed -i 's/#AMD//' /boot/loader/entries/arch.conf
|
sed -i 's/#AMD//' /boot/loader/entries/arch.conf
|
||||||
elif [[ $vendor == 2 ]]; then
|
elif [[ $vendor == 2 ]]; then
|
||||||
|
@ -178,7 +184,8 @@ if [[ $kernel == 1 || $kernel == 2 || $kernel == 3 || $kernel == 4 ]]; then
|
||||||
|
|
||||||
if [[ $kernel == 2 || $kernel == 4 || $kernel == 5 ]]; then
|
if [[ $kernel == 2 || $kernel == 4 || $kernel == 5 ]]; then
|
||||||
# Entry Arch LTS
|
# Entry Arch LTS
|
||||||
cp ./configs/arch-lts.conf /boot/loader/entries/
|
$arch_lts_conf=$(find / -type f -name arch-lts.conf | grep configs)
|
||||||
|
cp $arch_lts_conf /boot/loader/entries/
|
||||||
if [[ $vendor == 1 ]]; then
|
if [[ $vendor == 1 ]]; then
|
||||||
sed -i 's/#AMD//' /boot/loader/entries/arch-lts.conf
|
sed -i 's/#AMD//' /boot/loader/entries/arch-lts.conf
|
||||||
elif [[ $vendor == 2 ]]; then
|
elif [[ $vendor == 2 ]]; then
|
||||||
|
@ -188,7 +195,8 @@ fi
|
||||||
|
|
||||||
if [[ $kernel == 3 || $kernel == 4 || $kernel == 5 ]]; then
|
if [[ $kernel == 3 || $kernel == 4 || $kernel == 5 ]]; then
|
||||||
# Entry Arch Zen
|
# Entry Arch Zen
|
||||||
cp ./configs/arch-zen.conf /boot/loader/entries/
|
$arch_zen_conf=$(find / -type f -name arch-zen.conf | grep configs)
|
||||||
|
cp $arch_zen_conf /boot/loader/entries/
|
||||||
if [[ $vendor == 1 ]]; then
|
if [[ $vendor == 1 ]]; then
|
||||||
sed -i 's/#AMD//' /boot/loader/entries/arch-zen.conf
|
sed -i 's/#AMD//' /boot/loader/entries/arch-zen.conf
|
||||||
elif [[ $vendor == 2 ]]; then
|
elif [[ $vendor == 2 ]]; then
|
||||||
|
@ -198,6 +206,7 @@ fi
|
||||||
|
|
||||||
if [[ $kernel == 1 || $kernel == 2 || $kernel == 3 || $kernel == 4 ]]; then
|
if [[ $kernel == 1 || $kernel == 2 || $kernel == 3 || $kernel == 4 ]]; then
|
||||||
# Entry Arch Fallback
|
# Entry Arch Fallback
|
||||||
|
$arch_fallback_conf=$(find / -type f -name arch-fallback.conf | grep configs)
|
||||||
cp ./configs/arch-fallback.conf /boot/loader/entries/
|
cp ./configs/arch-fallback.conf /boot/loader/entries/
|
||||||
if [[ $vendor == 1 ]]; then
|
if [[ $vendor == 1 ]]; then
|
||||||
sed -i 's/#AMD//' /boot/loader/entries/arch-fallback.conf
|
sed -i 's/#AMD//' /boot/loader/entries/arch-fallback.conf
|
||||||
|
@ -208,7 +217,8 @@ fi
|
||||||
|
|
||||||
if [[ $kernel == 2 || $kernel == 4 || $kernel == 5 ]]; then
|
if [[ $kernel == 2 || $kernel == 4 || $kernel == 5 ]]; then
|
||||||
# Entry Arch LTS Fallback
|
# Entry Arch LTS Fallback
|
||||||
cp ./configs/arch-lts-fallback.conf /boot/loader/entries/
|
$arch_lts_fallback_conf=$(find / -type f -name arch-lts-fallback.conf | grep configs)
|
||||||
|
cp $arch_lts_fallback_conf /boot/loader/entries/
|
||||||
if [[ $vendor == 1 ]]; then
|
if [[ $vendor == 1 ]]; then
|
||||||
sed -i 's/#AMD//' /boot/loader/entries/arch-lts-fallback.conf
|
sed -i 's/#AMD//' /boot/loader/entries/arch-lts-fallback.conf
|
||||||
elif [[ $vendor == 2 ]]; then
|
elif [[ $vendor == 2 ]]; then
|
||||||
|
@ -218,7 +228,8 @@ fi
|
||||||
|
|
||||||
if [[ $kernel == 3 || $kernel == 4 || $kernel == 5 ]]; then
|
if [[ $kernel == 3 || $kernel == 4 || $kernel == 5 ]]; then
|
||||||
# Entry Arch Zen Fallback
|
# Entry Arch Zen Fallback
|
||||||
cp ./configs/arch-zen-fallback.conf /boot/loader/entries/
|
$arch_zen_fallback_conf=$(find / -type f -name arch-zen-fallback.conf | grep configs)
|
||||||
|
cp $arch_zen_fallback_conf /boot/loader/entries/
|
||||||
if [[ $vendor == 1 ]]; then
|
if [[ $vendor == 1 ]]; then
|
||||||
sed -i 's/#AMD//' /boot/loader/entries/arch-zen-fallback.conf
|
sed -i 's/#AMD//' /boot/loader/entries/arch-zen-fallback.conf
|
||||||
elif [[ $vendor == 2 ]]; then
|
elif [[ $vendor == 2 ]]; then
|
||||||
|
|
Loading…
Reference in a new issue