From 3cc1cf9d64465bc14c404a6edfd1d7f2754745cf Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 3 Jul 2018 13:12:03 +0200 Subject: T728: add support for vyos-postconfig-bootup.script --- debian/vyatta-cfg-system.postinst.in | 6 ++++-- 1 file 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 <>/etc/rc.local -- cgit v1.2.3