diff options
author | Apachez <apachez@gmail.com> | 2023-09-30 22:26:44 +0200 |
---|---|---|
committer | Apachez <apachez@gmail.com> | 2023-09-30 22:26:44 +0200 |
commit | 646f08fc5a302e08aad90af3fa0ee32e138ee585 (patch) | |
tree | b3edb4d8c87db87a9498efd1cef269ad65f1899e /src/init | |
parent | 9dd5ff064a37b4e884f7bd9fb7630bf7829fa1ad (diff) | |
download | vyos-1x-646f08fc5a302e08aad90af3fa0ee32e138ee585.tar.gz vyos-1x-646f08fc5a302e08aad90af3fa0ee32e138ee585.zip |
T5436: Add missing preconfig-script
Diffstat (limited to 'src/init')
-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 dd07d2e4b..cf97d4c6e 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 |