From 538d2cc16ccf2331dd567ac6a57d259898a05b67 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 30 Dec 2005 14:06:08 +0000 Subject: Avoid the 'function' keyword (unsupported in (d)ash). --- adduser.local | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'adduser.local') 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 # -# $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 -- cgit v1.2.3