Skip to content

Commit

Permalink
make -h/help work as normal user also
Browse files Browse the repository at this point in the history
  • Loading branch information
gebi committed Nov 7, 2005
1 parent 1e01a1a commit d538de5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
grml-vpn (0.11) unstable; urgency=low

* make grml-vpn -h/help work as normal user also

-- Michael Gebetsroither <michael.geb@gmx.at> Mon, 7 Nov 2005 16:47:54 +0100

grml-vpn (0.10) unstable; urgency=low

* a few fixes
Expand Down
7 changes: 5 additions & 2 deletions grml-vpn
Original file line number Diff line number Diff line change
Expand Up @@ -429,15 +429,18 @@ done
shift $(($OPTIND - 1)) # set ARGV to the first not parsed commandline parameter
setVerbose $verbose_

case "$1" in
info) ACTION_='info'; actionInfo; exit 0 ;;
help) ACTION_='help'; printUsage; exit 0 ;;
esac

checkRoot die "You have to be root to use this program"
disableSyslog


case "$1" in
show) ACTION_='show'; actionShow; exit 0 ;;
clear) ACTION_='clear'; actionClear; exit 0 ;;
info) ACTION_='info'; actionInfo; exit 0 ;;
help) ACTION_='help'; printUsage; exit 0 ;;
"") printUsage; exit 0 ;;
esac

Expand Down

0 comments on commit d538de5

Please sign in to comment.