Changeset 10722 in hybrid for branches/releng-9.0/nanobsd/files/tools/wl-config
- Timestamp:
- May 8, 2012, 5:36:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/releng-9.0/nanobsd/files/tools/wl-config
r10704 r10722 88 88 echo " -b = batch mode, no user input" 89 89 echo " -c <config> = default configuration to fetch" 90 echo " -d = do not run the POST_CMD commands" 90 91 echo " -n = do not mount config partition" 91 92 echo " -m all = copy config files to running & config partition [default]" … … 105 106 OPT_HACK=0 # Hack for people without configuration managment and testing 106 107 OPT_BATCH=0 108 OPT_POSTCMD=true 107 109 108 110 parse_options() { 109 while getopts "bc:nm: " OPT; do111 while getopts "bc:nm:d" OPT; do 110 112 case "$OPT" in 111 113 b) OPT_BATCH=1;; 112 114 c) CONFIG="${OPTARG}";; 115 d) OPT_POSTCMD=false;; 113 116 n) OPT_MOUNT=0;; 114 117 m) case "$OPTARG" in … … 261 264 if [ $? -eq 0 ]; then 262 265 echo "# INFO: '${FILE}' changed" 263 if [ -n "${POST_CMD}" ]; then266 if $OPT_POSTCMD && [ -n "${POST_CMD}" ]; then 264 267 echo "## Running post_cmd: $POST_CMD" 265 268 $POST_CMD
Note:
See TracChangeset
for help on using the changeset viewer.