Magellan Linux

Diff of /trunk/mage/usr/lib/mage/museradd

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2174 by niro, Sat Aug 17 09:20:33 2013 UTC revision 2751 by niro, Thu Aug 14 12:07:06 2014 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  # $Header: /home/cvsd/magellan-cvs/magellan-src/mage/usr/lib/mage/museradd,v 1.4 2005-06-01 15:48:43 niro Exp $  # $Id$
3    
4  # include all needed files  # include all needed files
5  [ -f /etc/mage.rc.global ] && source /etc/mage.rc.global  [ -f /etc/mage.rc.global ] && source /etc/mage.rc.global
# Line 32  busybox_fix_user_opts() Line 32  busybox_fix_user_opts()
32   -u) shift; [[ $1 -lt 100 ]] && FIXED_USER_OPTS+=" -S"; FIXED_USER_OPTS+=" -u $1" ;;   -u) shift; [[ $1 -lt 100 ]] && FIXED_USER_OPTS+=" -S"; FIXED_USER_OPTS+=" -u $1" ;;
33   -r) FIXED_USER_OPTS+=" -S" ;;   -r) FIXED_USER_OPTS+=" -S" ;;
34   -M) FIXED_USER_OPTS+=" -H" ;;   -M) FIXED_USER_OPTS+=" -H" ;;
35     -l) continue ;; # just ignore this switch, adduser does not support it
36   *) FIXED_USER_OPTS+=" $1" ;;   *) FIXED_USER_OPTS+=" $1" ;;
37   esac   esac
38   shift   shift
# Line 65  fix_usermod_opts() Line 66  fix_usermod_opts()
66   do   do
67   case $1 in   case $1 in
68   -M) : ;; # usermod does not support the -M switch   -M) : ;; # usermod does not support the -M switch
69     -l) : ;; # usermod -l has not the same meaning like the -l switch of useradd
70   *) FIXED_USERMOD_OPTS+=" $1" ;;   *) FIXED_USERMOD_OPTS+=" $1" ;;
71   esac   esac
72   shift   shift

Legend:
Removed from v.2174  
changed lines
  Added in v.2751