From f9370d47b48fa703af7d7ac0d34cdd9e9733846d Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Fri, 13 Dec 2024 21:34:01 -0800 Subject: [PATCH] Update install.sh --- install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/install.sh b/install.sh index 0644efb..ce33eaa 100755 --- a/install.sh +++ b/install.sh @@ -195,6 +195,16 @@ if [ $(hostname) != "femtofox" ]; then if [ $reboot == "y" ]; then sudo reboot fi +else + # we are on femtofox embedded + # replace "type = serial" with "type = tcp" in config.ini + replace="s|type = serial|type = tcp|g" + sed -i "$replace" config.ini + # replace "# hostname = 192.168.0.1" with "hostname = localhost" in config.ini + replace="s|# hostname = 192.168.0.1|hostname = localhost|g" + sed -i "$replace" config.ini + printf "\nConfig file updated for femtofox embedded\n" + fi printf "\nInstallation complete!\n"