Удаление с проверкой устаревшего скрипта запуска /etc/init.d/wireguard

master 3288
Alexander Tratsevskiy 10 months ago
parent cd2d8f9e21
commit 5e27a98112

@ -0,0 +1,9 @@
# Calculate exists(/etc/init.d/wireguard)!= run=/bin/bash
# Remove the deprecated startup script if it is not in use
if [ ! -e /etc/runlevels/*/wireguard* ] && \
[ ! -e /etc/wireguard/wg0.conf ] && \
[ ! -e /etc/init.d/wireguard.* ]
then
rm /etc/init.d/wireguard
fi

@ -1,4 +1,4 @@
# Calculate chmod=0755
# Calculate chmod=0755 exists(/etc/init.d/wireguard)!=
#!/sbin/openrc-run
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

Loading…
Cancel
Save