add a "name" action, which pretty prints the "nice name" for a package (so,

mailserver or smtpd or so for a mailserver like sendmail)

svn path=/nixpkgs/trunk/; revision=5043
This commit is contained in:
Armijn Hemel 2006-03-15 13:47:03 +00:00
parent e745e86d52
commit 617d06c71c
2 changed files with 7 additions and 0 deletions

View File

@ -76,3 +76,7 @@ status() {
echo "stopped" echo "stopped"
fi fi
} }
name() {
echo $prog
}

View File

@ -153,6 +153,9 @@ case "$1" in
status $SSHD status $SSHD
RETVAL=$? RETVAL=$?
;; ;;
name)
name
;;
*) *)
echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}" echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
RETVAL=1 RETVAL=1