From 9799a4709f982a95d1e982b4442b2c7752edc356 Mon Sep 17 00:00:00 2001 From: Tom <116762865+NomDeTom@users.noreply.github.com> Date: Sun, 9 Feb 2025 00:30:16 +0000 Subject: [PATCH] Add SFC alias to bash_aliases at firstrun because 14 extra characters is too much. --- .../usr/local/bin/femto-runonce.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh index 1530030..7ffb9de 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh @@ -96,8 +96,16 @@ else echo "TERM, LANG and NCURSES_NO_UTF8_ACS already present in .bashrc, skipping" fi +# Add a cheeky alias to .bash_aliases +if ! grep -Fxq "alias sfc='sudo femto-config'" /home/femto/.bash_aliases; then # Check if the lines are already in .bash_aliases + echo "alias sfc='sudo femto-config'" >> /home/femto/.bash_aliases + echo "alias sfc='sudo femto-config' to .bash_aliases" +else + echo "alias sfc='sudo femto-config' already present in .bash_aliases, skipping" +fi + # remove first boot flag sed -i -E 's/^first_boot=.*/first_boot=false/' /etc/femto.conf log_message "Removing first boot flag and rebooting in 5 seconds..." sleep 5 -reboot \ No newline at end of file +reboot