summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-06-26 22:59:55 +0200
committerChristian Poessinger <christian@poessinger.com>2021-06-26 22:59:55 +0200
commitc121218b48833ec7ff3f7f29e1bd8b30b34c90eb (patch)
tree9680c630299ac03c3ce80b49634c17680dfa7472
parent0f6ec4722215c1d6692a6513c1cd60973f2d289d (diff)
downloadvyos-1x-c121218b48833ec7ff3f7f29e1bd8b30b34c90eb.tar.gz
vyos-1x-c121218b48833ec7ff3f7f29e1bd8b30b34c90eb.zip
Import vyos-postconfig-bootup.script from vyatta-cfg-system
-rw-r--r--debian/vyos-1x.postinst14
1 files changed, 14 insertions, 0 deletions
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 <<EOF >>/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