mirror of
https://github.com/femtofox/femtofox.git
synced 2026-11-26 09:56:32 -05:00
Add SFC alias to bash_aliases at firstrun
because 14 extra characters is too much.
This commit is contained in:
parent
1ee196aaa6
commit
9799a4709f
1 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
reboot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue