45486ea13e
git-svn-id: http://emdebian.org/svn/current@7722 563faec7-e20c-0410-992a-a66f704d0ccd
18 lines
435 B
Bash
Executable file
18 lines
435 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
# The script is called with the following arguments:
|
|
|
|
# $1 = $DIR - the top directory of the debootstrapped system
|
|
# $2 = $ARCH - the specified architecture, already checked with dpkg-architecture.
|
|
|
|
# setup.sh needs to be executable.
|
|
if [ -d $1 ]; then
|
|
mkdir -p $1/usr/sbin/
|
|
cat > $1/usr/sbin/policy-rc.d << EOF
|
|
#!/bin/sh
|
|
echo "All runlevel operations denied by policy" >&2
|
|
EOF
|
|
chmod a+x $1/usr/sbin/policy-rc.d
|
|
fi
|