summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-10-03 10:17:28 +0100
committerGitHub <noreply@github.com>2023-10-03 10:17:28 +0100
commit3e4ea27ac21b163e00c03e21bf4bd8f9d19d99b6 (patch)
tree82d0cec06f3cc34a9ab1bf7a416c6a2c3228d699 /src/init
parent868ada026f5342aa36698b5c5928f22edb752c4e (diff)
parent646f08fc5a302e08aad90af3fa0ee32e138ee585 (diff)
downloadvyos-1x-3e4ea27ac21b163e00c03e21bf4bd8f9d19d99b6.tar.gz
vyos-1x-3e4ea27ac21b163e00c03e21bf4bd8f9d19d99b6.zip
Merge pull request #2326 from Apachez-/T5436
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