mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-22 15:11:04 +01:00
Optimized setup procedure
This commit is contained in:
parent
57b8fe2d69
commit
f28f8cd11b
@ -404,13 +404,22 @@ if [ "$encrypt_system" == "y" ]
|
|||||||
) | chroot "$root_mount_path" /bin/bash || error
|
) | chroot "$root_mount_path" /bin/bash || error
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# question "Do you want to copy all Wifi passwords to the device?(y/n)" && read -r copy_wifi
|
question "Do you want to setup Wifi on the device?(y/N)" && read -r setup_wifi
|
||||||
# if [ "$copy_wifi" = "y" ]
|
if [ "$setup_wifi" = "y" ]
|
||||||
# then
|
then
|
||||||
# origin_wifi_config_path="/etc/NetworkManager/system-connections/"
|
question "Please type in the ssid:" && read -r ssid
|
||||||
# target_wifi_config_path="$root_mount_path$origin_wifi_config_path"
|
question "Please type in the psk:" && read -r psk
|
||||||
# rsync -av "$origin_wifi_config_path" "$target_wifi_config_path"
|
case "$os" in
|
||||||
# fi
|
"retropie")
|
||||||
|
wifi_file="$boot_mount_path""wifikeyfile.txt"
|
||||||
|
echo "ssid=\"$ssid\"" > "$wifi_file"
|
||||||
|
echo "psk=\"$psk\"" >> "$wifi_file"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
warning "Wifi setting for operation system \"$os\" is not supported yet. Skipped."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
info "Running system specific procedures..."
|
info "Running system specific procedures..."
|
||||||
if [ "$os" = "retropie" ]
|
if [ "$os" = "retropie" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user