[ Avaa Bypassed ]




Upload:

Command:

www-data@3.17.166.43: ~ $
#!/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
friendly-recovery File 286 B 0755
netplan File 22.51 KB 0755
openvpn-generator File 899 B 0755
snapd-generator File 38.23 KB 0755
systemd-bless-boot-generator File 14.15 KB 0755
systemd-cryptsetup-generator File 34.36 KB 0755
systemd-debug-generator File 14.29 KB 0755
systemd-fstab-generator File 38.43 KB 0755
systemd-getty-generator File 18.14 KB 0755
systemd-gpt-auto-generator File 34.15 KB 0755
systemd-hibernate-resume-generator File 14.28 KB 0755
systemd-rc-local-generator File 14.14 KB 0755
systemd-run-generator File 14.27 KB 0755
systemd-system-update-generator File 14.14 KB 0755
systemd-sysv-generator File 34.22 KB 0755
systemd-veritysetup-generator File 18.28 KB 0755