add 'current' alias
showing installed state
This commit is contained in:
@ -6,4 +6,6 @@ function service_status () {
|
||||
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"
|
||||
|
Reference in New Issue
Block a user