2012-05-07 | Paul Boddie | raw annotate files changeset graph | Removed superfluous and non-functioning mount-related commands from the postsetup script, along with an attempt at copying sources lists from special distribution-specific directories. Attempted to tidy up device directory handling for user-do-root, making an empty dev directory where one is missing in --dev mode, and exiting if no dev directory is present in normal mode. Added some comments to the scripts and updated the "to do" items. |
1 #!/bin/sh 2 3 # Configuration: 4 if [ -e userinstall-defaults ]; then 5 . "$PWD/userinstall-defaults" 6 elif [ -e /etc/default/userinstall ]; then 7 . /etc/default/userinstall 8 else 9 echo "No defaults found for userinstall." 1>&2 10 exit 1 11 fi 12 13 THISDIR=`dirname "$0"` 14 15 if [ "$1" = '--help' ]; then 16 echo "Usage: `basename $0` [ --root [ --dev ] ] [ <command and options> ]" 17 exit 1 18 elif [ "$1" = '--root' ]; then 19 shift 1 20 sudo "$THISDIR/user-do-root" $* 21 else 22 fakeroot fakechroot $FAKECHROOT_OPTIONS chroot "$PACKAGEROOT" $* 23 fi