404

[ Avaa Bypassed ]




Upload:

Command:

botdev@18.220.219.93: ~ $
#!/bin/sh

# This systemd generator creates dependency symlinks that make all OpenVPN
# tunnels listed in /etc/default/openvpn's AUTOSTART be started/stopped/reloaded
# when openvpn.service is started/stopped/reloaded.

set -eu

GENDIR="$1"
WANTDIR="$1/openvpn.service.wants"
SERVICEFILE="/lib/systemd/system/openvpn@.service"
AUTOSTART="all"
CONFIG_DIR=/etc/openvpn

mkdir -p "$WANTDIR"

if test -e /etc/default/openvpn ; then
	. /etc/default/openvpn
fi

# No VPNs automatically started
if test "x$AUTOSTART" = "xnone" ; then
	exit 0
fi

if test "x$AUTOSTART" = "xall" -o -z "$AUTOSTART" ; then
	for CONFIG in `cd $CONFIG_DIR; ls *.conf 2> /dev/null`; do
		NAME=${CONFIG%%.conf}
		ln -s "$SERVICEFILE" "$WANTDIR/openvpn@$NAME.service"
	done
else
	for NAME in $AUTOSTART ; do
		if test -e $CONFIG_DIR/$NAME.conf ; then
			ln -s "$SERVICEFILE" "$WANTDIR/openvpn@$NAME.service"
		fi
	done
fi

exit 0


Filemanager

Name Type Size Permission Actions
cloud-init-generator File 4.98 KB 0755
friendly-recovery File 286 B 0755
lvm2-activation-generator File 10.03 KB 0755
netplan File 42.27 KB 0755
openvpn-generator File 899 B 0755
snapd-generator File 26.07 KB 0755
systemd-cryptsetup-generator File 22.08 KB 0755
systemd-debug-generator File 9.99 KB 0755
systemd-fstab-generator File 30.09 KB 0755
systemd-getty-generator File 13.99 KB 0755
systemd-gpt-auto-generator File 26 KB 0755
systemd-hibernate-resume-generator File 9.99 KB 0755
systemd-rc-local-generator File 9.99 KB 0755
systemd-system-update-generator File 9.99 KB 0755
systemd-sysv-generator File 30.07 KB 0755
systemd-veritysetup-generator File 13.99 KB 0755