Files
boxtools/to_system/etc/profile.d/welcome.sh
LIN SE fdef0b69cf add 'current' alias
showing installed state
2023-08-08 11:11:13 +02:00

12 lines
443 B
Bash
Executable File

echo "Welcome to $HOSTNAME $(hostname -I)"
echo "$(cat /sys/class/net/enp4s0/address)"
export EDITOR=nano
function service_status () {
for name in $@; do \
echo ${name} $(systemctl is-active ${name}) $(systemctl is-enabled ${name}); \
done | column -t | grep --color=always '\(disabled\|inactive\|$\)'
}
alias current='cat /root/aputools/current'
service_status router frappy
echo "> current # show currently installed state"