From 4e7964eddee1cdfe50247adfc61115ce3087a7be Mon Sep 17 00:00:00 2001 From: codehelp Date: Sat, 13 Jun 2009 17:03:01 +0000 Subject: [PATCH] emrootfslib : Add for empty scripts to replace adduser git-svn-id: http://emdebian.org/svn/current@6494 563faec7-e20c-0410-992a-a66f704d0ccd --- debian/changelog | 3 ++- emrootfslib | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 7232f81..58492e3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 11 Jun 2009 19:39:11 +0100 + -- Neil Williams Sat, 13 Jun 2009 17:45:33 +0100 emdebian-rootfs (2.0.1) unstable; urgency=low diff --git a/emrootfslib b/emrootfslib index 2d1694d..43a3846 100644 --- a/emrootfslib +++ b/emrootfslib @@ -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