Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

Stubs #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,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
Expand Down