emrootfslib : Add for empty scripts to replace adduser

git-svn-id: http://emdebian.org/svn/current@6494 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
codehelp 2009-06-13 17:03:01 +00:00
parent 772e4fc230
commit 4e7964edde
2 changed files with 38 additions and 1 deletions

3
debian/changelog vendored
View file

@ -2,8 +2,9 @@ emdebian-rootfs (2.0.2) unstable; urgency=low
* emrootfslib : Add provide_empty_dpkg_divert function for Crush.
* Update default values for MIRROR (Closes: #532764)
* emrootfslib : Add for empty scripts to replace adduser
-- Neil Williams <codehelp@debian.org> Thu, 11 Jun 2009 19:39:11 +0100
-- Neil Williams <codehelp@debian.org> Sat, 13 Jun 2009 17:45:33 +0100
emdebian-rootfs (2.0.1) unstable; urgency=low

View file

@ -343,6 +343,42 @@ nobody:*:0:0:99999:7:::" > $BUILDPLACE/etc/shadow
fi
}
provide_empty_adduser ()
{
if [ ! -f $BUILDPLACE/usr/sbin/adduser ]; then
echo \
'#!/bin/sh
' > $BUILDPLACE/usr/sbin/adduser
chmod 755 $BUILDPLACE/usr/sbin/adduser
fi
if [ ! -f $BUILDPLACE/usr/sbin/deluser ]; then
echo \
'#!/bin/sh
' > $BUILDPLACE/usr/sbin/deluser
chmod 755 $BUILDPLACE/usr/sbin/deluser
fi
}
provide_empty_addgroup ()
{
if [ ! -f $BUILDPLACE/usr/sbin/addgroup ]; then
echo \
'#!/bin/sh
' > $BUILDPLACE/usr/sbin/addgroup
chmod 755 $BUILDPLACE/usr/sbin/addgroup
fi
if [ ! -f $BUILDPLACE/usr/sbin/delgroup ]; then
echo \
'#!/bin/sh
' > $BUILDPLACE/usr/sbin/delgroup
chmod 755 $BUILDPLACE/usr/sbin/delgroup
fi
}
provide_empty_dpkg_divert ()
{
if [ ! -f $BUILDPLACE/usr/bin/dpkg-divert ]; then