Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/dracut/mcored/module-setup.sh.in

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

revision 2339 by niro, Mon Jul 14 08:56:31 2014 UTC revision 2340 by niro, Mon Jul 14 09:20:43 2014 UTC
# Line 23  install() { Line 23  install() {
23   local __file   local __file
24    
25   # add missing users   # add missing users
26   if ! egrep '^lp:' "$initdir@@SYSCONFDIR@@/passwd" > /dev/null   if ! egrep '^lp:' "$initdir@@SYSCONFDIR@@/passwd" 2> /dev/null
27   then   then
28   egrep '^lp:' @@SYSCONFDIR@@/passwd >> "$initdir@@SYSCONFDIR@@/passwd"   egrep '^lp:' @@SYSCONFDIR@@/passwd >> "$initdir@@SYSCONFDIR@@/passwd"
29   fi   fi
30   # add MCORE_UNPRIV_USER   # add MCORE_UNPRIV_USER
31   if ! egrep '^@@MCORE_UNPRIV_USER@@:' "$initdir@@SYSCONFDIR@@/passwd" > /dev/null   if ! egrep '^@@MCORE_UNPRIV_USER@@:' "$initdir@@SYSCONFDIR@@/passwd" 2> /dev/null
32   then   then
33   egrep '^@@MCORE_UNPRIV_USER@@:' @@SYSCONFDIR@@/passwd >> "$initdir@@SYSCONFDIR@@/passwd"   egrep '^@@MCORE_UNPRIV_USER@@:' @@SYSCONFDIR@@/passwd >> "$initdir@@SYSCONFDIR@@/passwd"
34   fi   fi
35    
36   # add missing groups   # add missing groups
37   if ! egrep '^lp:' "$initdir@@SYSCONFDIR@@/group" > /dev/null   if ! egrep '^lp:' "$initdir@@SYSCONFDIR@@/group" 2> /dev/null
38   then   then
39   egrep '^lp:' @@SYSCONFDIR@@/group >> "$initdir@@SYSCONFDIR@@/group"   egrep '^lp:' @@SYSCONFDIR@@/group >> "$initdir@@SYSCONFDIR@@/group"
40   fi   fi
41   if ! egrep '^@@MCORE_UNPRIV_GROUP@@:' "$initdir@@SYSCONFDIR@@/group" > /dev/null   if ! egrep '^@@MCORE_UNPRIV_GROUP@@:' "$initdir@@SYSCONFDIR@@/group" 2> /dev/null
42   then   then
43   egrep '^@@MCORE_UNPRIV_GROUP@@:' @@SYSCONFDIR@@/group >> "$initdir@@SYSCONFDIR@@/group"   egrep '^@@MCORE_UNPRIV_GROUP@@:' @@SYSCONFDIR@@/group >> "$initdir@@SYSCONFDIR@@/group"
44   fi   fi

Legend:
Removed from v.2339  
changed lines
  Added in v.2340