diff options
author | Devin Teske <dteske@FreeBSD.org> | 2013-04-22 05:02:34 +0000 |
---|---|---|
committer | Devin Teske <dteske@FreeBSD.org> | 2013-04-22 05:02:34 +0000 |
commit | e14ddd1f16e7e5788392c50de21ea7c927e0690c (patch) | |
tree | 30a8b20faa65aa281c83e178629b4b01903d9fef /usr.sbin/bsdconfig/networking/hostname | |
parent | 384875a3a66c665664d65f8efd0ce7d5051f1ea3 (diff) |
Add new flags `-d' (sets debug=1) and `-D file' (sets debugFile) and
improve debugging initialization. Also fixup USAGE statements while we're
here. Also, change initialization of main program to _not_ change working
directory, allowing the debugFile to be relative without confusion.
Notes
Notes:
svn path=/head/; revision=249746
Diffstat (limited to 'usr.sbin/bsdconfig/networking/hostname')
-rwxr-xr-x | usr.sbin/bsdconfig/networking/hostname | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bsdconfig/networking/hostname b/usr.sbin/bsdconfig/networking/hostname index 231320ecc872..ab74ae69c417 100755 --- a/usr.sbin/bsdconfig/networking/hostname +++ b/usr.sbin/bsdconfig/networking/hostname @@ -1,6 +1,6 @@ #!/bin/sh #- -# Copyright (c) 2006-2012 Devin Teske +# Copyright (c) 2006-2013 Devin Teske # All Rights Reserved. # # Redistribution and use in source and binary forms, with or without @@ -49,7 +49,7 @@ ipgm=$( f_index_menusel_keyword $BSDCFG_LIBE/$APP_DIR/INDEX "$pgm" ) # # Process command-line arguments # -while getopts hSX flag; do +while getopts dD:hSX flag; do case "$flag" in h|\?) f_usage $BSDCFG_LIBE/$APP_DIR/USAGE "PROGRAM_NAME" "$pgm";; esac |