1 #!/bin/bash 2 # Usage: user-setup [ <mirror> ] 3 4 # Configuration: 5 if [ -e userinstall-defaults ]; then 6 source userinstall-defaults 7 elif [ -e /etc/default/userinstall ]; then 8 source /etc/default/userinstall 9 else 10 echo "No defaults found for userinstall." 11 exit 1 12 fi 13 14 if [ $1 == "--help" ]; then 15 echo "Usage: user-setup [ <mirror> ]" 16 echo 17 echo "Examples:" 18 echo 19 echo "user-setup" 20 echo "user-setup file:///tmp/$DISTNAME/" 21 exit 1 22 fi 23 24 fakeroot fakechroot debootstrap --variant=fakechroot $DISTNAME $PACKAGEROOT $1