3 RDEPENDS_$
{PN
} = "sudo"
5 ALLOW_EMPTY_$
{PN
} = "1"
8 # Edit sudoers
to allow the use of the wheel group
and non root users
to mount
/shutdown etc.
9 # Please consider this when using.
13 mkdir
-p $D$
{sysconfdir
}/
14 touch $D$
{sysconfdir
}/sudoers
15 sed
-i
/#
%wheel
/d $D$
{sysconfdir
}/sudoers
16 echo '
%wheel ALL
=(ALL
) ALL'
>> $D$
{sysconfdir
}/sudoers
17 sed
-i
/#
%users
/d $D$
{sysconfdir
}/sudoers
18 echo '
%users ALL
=/sbin
/mount
/cdrom
,/sbin
/umount
/cdrom'
>> $D$
{sysconfdir
}/sudoers
19 echo '
%users localhost
=/sbin
/shutdown
-h now'
>> $D$
{sysconfdir
}/sudoers