s4-devel: allow extra net command line options and gdb
authorAndrew Tridgell <tridge@samba.org>
Wed, 21 Apr 2010 01:32:58 +0000 (11:32 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 21 Apr 2010 03:35:55 +0000 (13:35 +1000)
This allows you to run:

  GDB="gdb --args" vampire_ad.sh

and also to add higher debug levels like this:

  vampire_ad.sh -d100

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/scripting/devel/drs/vampire_ad.sh

index c40ca640717bff37a0d0f3d5451a084f26e6d677..7a6be506fc9e9d7e9642682a901fdbdb8bec9b13 100755 (executable)
@@ -15,6 +15,6 @@ sudo rndc reconfig
 
 REALM="$(echo $DNSDOMAIN | tr '[a-z]' '[A-Z]')"
 
-sudo bin/net vampire $DNSDOMAIN -Uadministrator%$pass -s $PREFIX/etc/smb.conf --option=realm=$REALM --option="ads:dc function level=4" --option="ads:min function level=0" -d2 || exit 1
+sudo $GDB bin/net vampire $DNSDOMAIN -Uadministrator%$pass -s $PREFIX/etc/smb.conf --option=realm=$REALM --option="ads:dc function level=4" --option="ads:min function level=0" -d2 "$@" || exit 1
 PRIVATEDIR=$PREFIX/private sudo -E scripting/bin/setup_dns.sh $machine $DNSDOMAIN $machine_ip || exit 1
 sudo rndc flush