diff options
author | Jonas Smedegaard <dr@jones.dk> | 2005-12-30 14:06:08 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2005-12-30 14:06:08 +0000 |
commit | 538d2cc16ccf2331dd567ac6a57d259898a05b67 (patch) | |
tree | 8c9d5d2204a2a25786bc12b97c9437b15d6f1127 /adduser.local | |
parent | f9151dfdebfdec94bffd76bea02c5def8f43ed50 (diff) |
Avoid the 'function' keyword (unsupported in (d)ash).
Diffstat (limited to 'adduser.local')
-rwxr-xr-x | adduser.local | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/adduser.local b/adduser.local index 974acf0..1445e99 100755 --- a/adduser.local +++ b/adduser.local @@ -3,7 +3,7 @@ # /usr/local/sbin/adduser.local # Copyright 2001-2002 Jonas Smedegaard <dr@jones.dk> # -# $Id: adduser.local,v 1.22 2005-12-20 02:11:51 jonas Exp $ +# $Id: adduser.local,v 1.23 2005-12-30 14:06:08 jonas Exp $ # # Common adduser additions for Spiff and Xenux networks # @@ -19,11 +19,11 @@ NEWUID=$2 NEWGID=$3 NEWHOMEDIR=$4 -function fullname() { getent passwd $NEWUSERNAME | awk -F: '{print $5}' | awk -F, '{print $1}'; } -function maildomain() { if [ -r /etc/mailname ]; then head -n 1 /etc/mailname; fi; } +fullname() { getent passwd $NEWUSERNAME | awk -F: '{print $5}' | awk -F, '{print $1}'; } +maildomain() { if [ -r /etc/mailname ]; then head -n 1 /etc/mailname; fi; } -function listlists() { if [ -x /usr/sbin/list_lists ]; then /usr/sbin/list_lists -ab; fi; } -function add2list() { /bin/echo "$1" | /usr/sbin/add_members -w y -a y -r - "$2"; } +listlists() { if [ -x /usr/sbin/list_lists ]; then /usr/sbin/list_lists -ab; fi; } +add2list() { /bin/echo "$1" | /usr/sbin/add_members -w y -a y -r - "$2"; } . /etc/adduser.conf |