Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
309 B

  1. #!/usr/bin/env sh
  2. # TODO: --authgroup should probably be an option as well
  3. . ~/.secrets
  4. # Needs to be invoked with sudo -E or similar to access these environment vars:
  5. echo "$VPN_PASSWD\npush" | sudo -E openconnect --no-cert-check --juniper "$VPN_PATH" -u "$VPN_USER" --passwd-on-stdin --authgroup general