aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/bbfw.in
diff options
context:
space:
mode:
authorDavid M. Syzdek <syzdek@bindlebinaries.com>2019-07-29 16:11:35 -0800
committerDavid M. Syzdek <syzdek@bindlebinaries.com>2019-07-29 16:11:35 -0800
commit1b32304fbd2f71cd593fc9cddf48f5e0bcdfb592 (patch)
treee048f7cc414db2622950bd85d509cedc8329d8b0 /src/bbfw.in
parent152bc3a14d2b9719be3f132e80189796fa8c5fb9 (diff)
downloadbbfw-1b32304fbd2f71cd593fc9cddf48f5e0bcdfb592.tar.gz
bbfw-1b32304fbd2f71cd593fc9cddf48f5e0bcdfb592.tar.bz2
bbfw-1b32304fbd2f71cd593fc9cddf48f5e0bcdfb592.tar.xz
bbfw-1b32304fbd2f71cd593fc9cddf48f5e0bcdfb592.zip
Adding function to standardize verion output
Diffstat (limited to 'src/bbfw.in')
-rwxr-xr-xsrc/bbfw.in14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/bbfw.in b/src/bbfw.in
index e6f28d1..3a3ec4e 100755
--- a/src/bbfw.in
+++ b/src/bbfw.in
@@ -468,6 +468,12 @@ stop() {
468} 468}
469 469
470 470
471version()
472{
473 echo "${PACKAGE_NAME} ${PACKAGE_VERSION} (bbfw)"
474}
475
476
471############ 477############
472### MAIN ### 478### MAIN ###
473############ 479############
@@ -491,7 +497,7 @@ case "$1" in
491 ;; 497 ;;
492 498
493 -v|--version) 499 -v|--version)
494 echo "${PACKAGE_NAME} ${PACKAGE_VERSION} (bbfw)" 500 version
495 ;; 501 ;;
496 502
497 'dump') 503 'dump')
@@ -499,19 +505,19 @@ case "$1" in
499 ;; 505 ;;
500 506
501 'start') # "start" brings up all configured interfaces: 507 'start') # "start" brings up all configured interfaces:
502 echo "${PACKAGE_NAME} ${PACKAGE_VERSION}" | $LOGGER 508 version | $LOGGER
503 conftest || exit 1 509 conftest || exit 1
504 start 2>&1 | $LOGGER 510 start 2>&1 | $LOGGER
505 ;; 511 ;;
506 512
507 'stop') # "stop" takes down all configured interfaces: 513 'stop') # "stop" takes down all configured interfaces:
508 echo "${PACKAGE_NAME} ${PACKAGE_VERSION}" | $LOGGER 514 version | $LOGGER
509 conftest || exit 1 515 conftest || exit 1
510 stop 2>&1 | $LOGGER 516 stop 2>&1 | $LOGGER
511 ;; 517 ;;
512 518
513 'restart') # "restart" restarts the network: 519 'restart') # "restart" restarts the network:
514 echo "${PACKAGE_NAME} ${PACKAGE_VERSION}" | $LOGGER 520 version | $LOGGER
515 conftest || exit 1 521 conftest || exit 1
516 stop 2>&1 | $LOGGER 522 stop 2>&1 | $LOGGER
517 start 2>&1 | $LOGGER 523 start 2>&1 | $LOGGER