From ad10116b781d0c2917a8dfa75bf8f2ff02ce78ab Mon Sep 17 00:00:00 2001 From: Oliver Schmidhauser Date: Sat, 11 Nov 2017 20:53:46 +0100 Subject: [PATCH] Add a couple of stubs --- ubuntu.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/ubuntu.sh b/ubuntu.sh index 8ccb554..738d8d5 100644 --- a/ubuntu.sh +++ b/ubuntu.sh @@ -23,6 +23,19 @@ if [ "$first" != 1 ];then proot --link2symlink tar -xf $cur/ubuntu.tar.gz --exclude='dev'||: echo "fixing nameserver, otherwise it can't connect to the internet" echo "nameserver 8.8.8.8" > etc/resolv.conf + stubs=() + stubs+=('usr/sbin/groupadd') + stubs+=('usr/sbin/groupdel') + stubs+=('usr/bin/groups') + stubs+=('usr/sbin/useradd') + stubs+=('usr/sbin/usermod') + stubs+=('usr/sbin/userdel') + stubs+=('usr/bin/chage') + stubs+=('usr/bin/mesg') + for f in ${stubs[@]};do + echo "Writing stub: $f" + echo -e "#!/bin/sh\nexit" > "$f" + done cd $cur fi mkdir -p binds