diff options
author | Apachez <apachez@gmail.com> | 2023-09-30 22:26:44 +0200 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2023-10-03 09:18:35 +0000 |
commit | 4bbbca984f9067359378cbe1430a05a37945c1d3 (patch) | |
tree | 9bdc05854cbcc509d5cde7566623797c044d9ed9 /src | |
parent | 18e184f104a41f0ff1fb4e3dd9f51c34b5a8df1d (diff) | |
download | vyos-1x-4bbbca984f9067359378cbe1430a05a37945c1d3.tar.gz vyos-1x-4bbbca984f9067359378cbe1430a05a37945c1d3.zip |
T5436: Add missing preconfig-script
(cherry picked from commit 646f08fc5a302e08aad90af3fa0ee32e138ee585)
Diffstat (limited to 'src')
-rwxr-xr-x | src/init/vyos-router | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/init/vyos-router b/src/init/vyos-router index b8833a8a0..1e1fdeddc 100755 --- a/src/init/vyos-router +++ b/src/init/vyos-router @@ -105,6 +105,9 @@ load_bootfile () restore_if_missing_preconfig_script () { if [ ! -x ${vyatta_sysconfdir}/config/scripts/vyos-preconfig-bootup.script ]; then + mkdir -p ${vyatta_sysconfdir}/config/scripts + chgrp ${GROUP} ${vyatta_sysconfdir}/config/scripts + chmod 775 ${vyatta_sysconfdir}/config/scripts cp ${vyos_rootfs_dir}/opt/vyatta/etc/config/scripts/vyos-preconfig-bootup.script ${vyatta_sysconfdir}/config/scripts/ chgrp ${GROUP} ${vyatta_sysconfdir}/config/scripts/vyos-preconfig-bootup.script chmod 750 ${vyatta_sysconfdir}/config/scripts/vyos-preconfig-bootup.script @@ -123,6 +126,9 @@ run_preconfig_script () restore_if_missing_postconfig_script () { if [ ! -x ${vyatta_sysconfdir}/config/scripts/vyos-postconfig-bootup.script ]; then + mkdir -p ${vyatta_sysconfdir}/config/scripts + chgrp ${GROUP} ${vyatta_sysconfdir}/config/scripts + chmod 775 ${vyatta_sysconfdir}/config/scripts cp ${vyos_rootfs_dir}/opt/vyatta/etc/config/scripts/vyos-postconfig-bootup.script ${vyatta_sysconfdir}/config/scripts/ chgrp ${GROUP} ${vyatta_sysconfdir}/config/scripts/vyos-postconfig-bootup.script chmod 750 ${vyatta_sysconfdir}/config/scripts/vyos-postconfig-bootup.script |