diff options
author | erdgeist <erdgeist@erdgeist.org> | 2007-09-14 23:25:04 +0000 |
---|---|---|
committer | erdgeist <erdgeist@erdgeist.org> | 2007-09-14 23:25:04 +0000 |
commit | 208937d79311db5858ca6eb12724538aec671ccb (patch) | |
tree | c8ea08d2d18c851caea390bbac69d7de2db07b3c | |
parent | 8bc4651429e4e75a86df68d8d0bdf333a3331d71 (diff) |
Added short cuts to ezjail-admin that will invoke PREFIX/etc/rc.d/ezjail{,.sh} with
-rwxr-xr-x | ezjail-admin | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ezjail-admin b/ezjail-admin index 7e86252..56290c9 100755 --- a/ezjail-admin +++ b/ezjail-admin | |||
@@ -632,6 +632,13 @@ install) | |||
632 | [ "${ezjail_installports}" = "YES" ] && ezjail_updateports | 632 | [ "${ezjail_installports}" = "YES" ] && ezjail_updateports |
633 | 633 | ||
634 | ;; | 634 | ;; |
635 | ######################## ezjail-admin SHORTCUT ######################## | ||
636 | *start|*stop) | ||
637 | [ -x "${ezjail_prefix}/etc/rc.d/ezjail" ] && exec "${ezjail_prefix}/etc/rc.d/ezjail" $@ | ||
638 | [ -x "${ezjail_prefix}/etc/rc.d/ezjail.sh" ] && exec "${ezjail_prefix}/etc/rc.d/ezjail.sh" $@ | ||
639 | |||
640 | exerr "Could not find ezjail's rc.d script in ${ezjail_prefix}/etc/rc.d/. You need to type it the long way." | ||
641 | ;; | ||
635 | ######################## ezjail-admin CONFIG ######################## | 642 | ######################## ezjail-admin CONFIG ######################## |
636 | config) | 643 | config) |
637 | # Clean variables, prevent polution | 644 | # Clean variables, prevent polution |