From 3a795a2cbf6ee564fd9594d2b8d7a11cb35fa092 Mon Sep 17 00:00:00 2001 From: ZHANG Yuntian <95260730+RadxaYuntian@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:10:35 +0800 Subject: [PATCH] Fix install on new system --- debian/rsetup-config-first-boot.postinst | 4 ++++ debian/rsetup.postinst | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/debian/rsetup-config-first-boot.postinst b/debian/rsetup-config-first-boot.postinst index 494e77a0..ae6359c6 100755 --- a/debian/rsetup-config-first-boot.postinst +++ b/debian/rsetup-config-first-boot.postinst @@ -6,6 +6,10 @@ action="$1" if [ "$action" = configure ] then + if [ ! -e /config ] + then + mkdir /config + fi if [ ! -e /config/before.txt ] then cp /usr/share/doc/rsetup-config-first-boot/before.txt /config/before.txt diff --git a/debian/rsetup.postinst b/debian/rsetup.postinst index 3f1ce1df..dd4578dc 100755 --- a/debian/rsetup.postinst +++ b/debian/rsetup.postinst @@ -6,6 +6,10 @@ action="$1" if [ "$action" = configure ] then + if [ ! -e /config ] + then + mkdir /config + fi if [ ! -e /config/config.txt ] then cp /usr/share/doc/rsetup/config.txt /config/config.txt