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.

22 lines
818 B

  1. #!/bin/sh /etc/rc.common
  2. START=92
  3. USE_PROCD=1
  4. start_service(){
  5. logger -t 'softethervpn5' "Starting softether client service."
  6. [ -d /var/softethervpn ] || mkdir -p -m 0775 /var/softethervpn
  7. [ -f /var/softethervpn/hamcore.se2 ] || ln -sf /usr/libexec/softethervpn/hamcore.se2 /var/softethervpn/
  8. [ -f /var/softethervpn/lang.config ] || ln -sf /usr/libexec/softethervpn/lang.config /var/softethervpn/
  9. [ -f /var/softethervpn/vpnclient ] || ln -sf /usr/libexec/softethervpn/vpnclient /var/softethervpn/
  10. [ -f /var/softethervpn/vpn_client.config ] || ln -sf /usr/libexec/softethervpn/vpn_client.config /var/softethervpn/
  11. procd_open_instance
  12. procd_set_param env LANG=en_US.UTF-8
  13. procd_set_param command /var/softethervpn/vpnclient start --foreground
  14. procd_set_param respawn
  15. procd_close_instance
  16. }