1
0

run-cjdroute.bash 347 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. # A script to start cjdroute with its config as an argument
  3. # Config
  4. cjdroute_config='/etc/cjdroute.conf'
  5. # Functions
  6. usage() { echo "Usage: run-cjdroute [/path/to/cjdroute.conf] (/etc/cjdroute.conf by default)"; }
  7. main() {
  8. [[ "$1" ]] && { cjdroute_config="$1"; }
  9. cjdroute < "$cjdroute_config"
  10. }
  11. # DO SOMETHING
  12. main "$@"