summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2018-07-03 13:12:03 +0200
committerDaniil Baturin <daniil@baturin.org>2018-07-03 13:12:03 +0200
commit3cc1cf9d64465bc14c404a6edfd1d7f2754745cf (patch)
tree2317ca80996f2749d6dff150e5fe53a0ba0e5b0a
parentf6a2a10452ed03559be07f780cb859998e4b1a7c (diff)
downloadvyatta-cfg-system-3cc1cf9d64465bc14c404a6edfd1d7f2754745cf.tar.gz
vyatta-cfg-system-3cc1cf9d64465bc14c404a6edfd1d7f2754745cf.zip
T728: add support for vyos-postconfig-bootup.script
-rwxr-xr-xdebian/vyatta-cfg-system.postinst.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index fd27ebc4..9898fc2b 100755
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -143,8 +143,10 @@ then
# Do not remove the following call to vyatta-postconfig-bootup.script.
# Any boot time workarounds should be put in script below so that they
# get preserved for the new image during image upgrade.
-POSTCONFIG=/opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script
-[ -x \$POSTCONFIG ] && \$POSTCONFIG
+POSTCONFIG_OLD=/opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script
+POSTCONFIG_NEW=/config/scripts/vyos-postconfig-bootup.script
+[ -x \$POSTCONFIG_OLD ] && \$POSTCONFIG_OLD
+[ -x \$POSTCONFIG_NEW ] && \$POSTCONFIG_NEW
EOF
sh -c "sed -i -e '/exit 0/d' /etc/rc.local"
cat <<EOF >>/etc/rc.local