make sure frappy is started on boot

this is a not-so-easy problem of timing

change includes a 'start_frappy' script, which gets port and
cfg from the box config file. so install does no longer need
to be executed when cfg or port is changed
This commit is contained in:
2025-06-27 11:30:46 +02:00
parent d9ac7c9e71
commit 86eef4e0f6
3 changed files with 29 additions and 5 deletions

View File

@@ -8,6 +8,13 @@ function service_status () {
echo ${name} $(systemctl is-active ${name}) $enabled; \
done | column -t | grep --color=always '\(disabled\|inactive\|$\)' | nl -bn
}
function user_service_status () {
for name in $@; do \
enabled=$(systemctl --user is-enabled ${name} 2> /dev/null) && \
echo ${name} $(systemctl --user is-active ${name}) $enabled; \
done | column -t | grep --color=always '\(disabled\|inactive\|$\)' | nl -bn
}
alias current='cat /home/l_samenv/boxtools/current'
service_status router frappy display
service_status router display
user_service_status frappy
echo "> current # show currently installed state"