$(INSTALL_DIR) \
$(1)/usr/sbin \
$(1)/lib/netifd/proto \
- $(1)/etc/hotplug.d/iface
+ $(1)/etc/hotplug.d/iface \
+ $(1)/etc/openfortivpn \
+ $(1)/lib/upgrade/keep.d
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/openfortivpn $(1)/usr/sbin/
$(INSTALL_BIN) ./files/openfortivpn-wrapper $(1)/usr/sbin/
$(INSTALL_BIN) ./files/openfortivpn.sh $(1)/lib/netifd/proto/
$(INSTALL_BIN) ./files/openfortivpn-ppp-up $(1)/lib/netifd/openfortivpn-ppp-up
+ $(INSTALL_DATA) ./files/openfortivpn.upgrade $(1)/lib/upgrade/keep.d/openfortivpn
endef
$(eval $(call BuildPackage,openfortivpn))
mkdir -p '/var/etc/openfortivpn/peers'
}
+ [ -f /etc/openfortivpn/user-cert-$config.pem ] && append_args "--user-cert=/etc/openfortivpn/user-cert-$config.pem"
+ [ -f /etc/openfortivpn/user-key-$config.pem ] && append_args "--user-key=/etc/openfortivpn/user-key-$config.pem"
+ [ -f /etc/openfortivpn/ca-$config.pem ] && append_args "--ca-file=/etc/openfortivpn/ca-$config.pem"
+
callfile="/var/etc/openfortivpn/peers/$config"
echo "115200
:$local_ip