From c121218b48833ec7ff3f7f29e1bd8b30b34c90eb Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 26 Jun 2021 22:59:55 +0200 Subject: Import vyos-postconfig-bootup.script from vyatta-cfg-system --- debian/vyos-1x.postinst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'debian/vyos-1x.postinst') diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst index 8f6fa26fa..709313db1 100644 --- a/debian/vyos-1x.postinst +++ b/debian/vyos-1x.postinst @@ -71,6 +71,20 @@ for init in openswan ipsec setkey; do update-rc.d -f ${init} remove >/dev/null done +# create /opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script +# this should be after 'mkdir -p /opt/vyatta/etc/config/scripts' above +if [ ! -x /opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script ]; then + touch /opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script + chmod 755 /opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script + cat <>/opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script +#!/bin/sh +# This script is executed at boot time after VyOS configuration is fully applied. +# Any modifications required to work around unfixed bugs +# or use services not available through the VyOS CLI system can be placed here. + +EOF +fi + # remove keys rm -f /etc/ipsec.secrets touch /etc/ipsec.secrets -- cgit v1.2.3