Skip to content

Commit

Permalink
Using library rootCheck function
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Vincent committed Jul 17, 2010
1 parent 0f742e7 commit d1a6cbf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dmenu-netcfg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
# Author: Tom Vincent
# Created: 2009-07-04

if [[ $EUID -ne 0 ]]; then
echo "${0##*/} must be run as root" 1>&2
exit 1
fi
# Imports:
. "$HOME/proj/src/bash/lib/rootCheck.sh"

rootCheck

CMD="$(ls /etc/network.d/ -1Ap | grep -v \/ | dmenu)"
if [[ -n "$CMD" ]]; then
Expand Down

0 comments on commit d1a6cbf

Please sign in to comment.