Added short cuts to ezjail-admin that will invoke PREFIX/etc/rc.d/ezjail{,.sh} with

This commit is contained in:
erdgeist 2007-09-14 23:25:04 +00:00
parent 8bc4651429
commit 208937d793

View File

@ -631,6 +631,13 @@ install)
# Fill ports, if requested # Fill ports, if requested
[ "${ezjail_installports}" = "YES" ] && ezjail_updateports [ "${ezjail_installports}" = "YES" ] && ezjail_updateports
;;
######################## ezjail-admin SHORTCUT ########################
*start|*stop)
[ -x "${ezjail_prefix}/etc/rc.d/ezjail" ] && exec "${ezjail_prefix}/etc/rc.d/ezjail" $@
[ -x "${ezjail_prefix}/etc/rc.d/ezjail.sh" ] && exec "${ezjail_prefix}/etc/rc.d/ezjail.sh" $@
exerr "Could not find ezjail's rc.d script in ${ezjail_prefix}/etc/rc.d/. You need to type it the long way."
;; ;;
######################## ezjail-admin CONFIG ######################## ######################## ezjail-admin CONFIG ########################
config) config)