diff options
Diffstat (limited to 'emulators/linux_SuSE/scripts/linux-rpm.sh')
-rw-r--r-- | emulators/linux_SuSE/scripts/linux-rpm.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/emulators/linux_SuSE/scripts/linux-rpm.sh b/emulators/linux_SuSE/scripts/linux-rpm.sh new file mode 100644 index 00000000000..74123a6b2be --- /dev/null +++ b/emulators/linux_SuSE/scripts/linux-rpm.sh @@ -0,0 +1,25 @@ +#!/bin/sh +# +# $Id: linux-rpm.sh,v 1.1.1.1 1998/10/31 00:18:47 tron Exp $ + +OPTS="--root @@EMULDIR@@" +for ARG +do + if [ "$ARG" = "-i" ] + then + OPTS="$OPTS --ignoreos" + fi +done + +if [ `whoami` != root ] +then + exec rpm $OPTS $* +fi + +mkdir -p @@EMULDIR@@/var/tmp +cp -p /etc/spwd.db @@EMULDIR@@/etc +rpm $OPTS $* +RC=$? +rm -rf @@EMULDIR@@/etc/spwd.db @@EMULDIR@@/var/tmp + +exit $RC |