forked from calculate/calculate-overlay
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
|
Loading…
Reference in new issue