summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authorApachez <apachez@gmail.com>2023-09-30 22:26:44 +0200
committerApachez <apachez@gmail.com>2023-09-30 22:26:44 +0200
commit646f08fc5a302e08aad90af3fa0ee32e138ee585 (patch)
treeb3edb4d8c87db87a9498efd1cef269ad65f1899e /src/init
parent9dd5ff064a37b4e884f7bd9fb7630bf7829fa1ad (diff)
downloadvyos-1x-646f08fc5a302e08aad90af3fa0ee32e138ee585.tar.gz
vyos-1x-646f08fc5a302e08aad90af3fa0ee32e138ee585.zip
T5436: Add missing preconfig-script
Diffstat (limited to 'src/init')
-rwxr-xr-xsrc/init/vyos-router6
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