diff options
author | Daniil Baturin <daniil@baturin.org> | 2019-01-02 11:38:41 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2019-01-02 11:38:41 +0100 |
commit | cf151e597dafd1738f984d4f70eb4b0f5fe27985 (patch) | |
tree | e6b7ef1e60b8dbb67be500c733c6f428c55b7e8b | |
parent | ecbc1cb9506e816658cf6d8715cf00b65e75cd9e (diff) | |
parent | df96aa9b43aa7097a337a3e65f83fe7fdc9028ef (diff) | |
download | vyatta-cfg-system-cf151e597dafd1738f984d4f70eb4b0f5fe27985.tar.gz vyatta-cfg-system-cf151e597dafd1738f984d4f70eb4b0f5fe27985.zip |
Merge branch 'current' into crux
-rwxr-xr-x | debian/vyatta-cfg-system.postinst.in | 35 |
1 files changed, 8 insertions, 27 deletions
diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in index be10fda4..965563c8 100755 --- a/debian/vyatta-cfg-system.postinst.in +++ b/debian/vyatta-cfg-system.postinst.in @@ -121,36 +121,17 @@ chmod -R 775 /opt/vyatta/etc/config mkdir -p /opt/vyatta/etc/logrotate mkdir -p /opt/vyatta/etc/netdevice.d -# create /opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script +# 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/vyatta-postconfig-bootup.script ]; then - touch /opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script - chmod 755 /opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script - cat <<EOF >>/opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script +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 called from /etc/rc.local on boot after the Vyatta -# configuration is fully applied. Any modifications done to work around -# unfixed bugs and implement enhancements which are not complete in the Vyatta -# system can be placed here. -EOF -fi +# 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. -# call vyatta-postconfig-bootup.script from /etc/rc.local -if ! grep -q /opt/vyatta/etc/config/scripts/vyatta-postconfig-bootup.script \ - /etc/rc.local -then - cat <<EOF >>/etc/rc.local -# 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_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 -exit 0 EOF fi |