From 3bd4ff10f34916c5c3bd0075cf6063e0cd420a24 Mon Sep 17 00:00:00 2001 From: Cameron Tacklind Date: Mon, 16 Jan 2023 22:06:48 -0800 Subject: [PATCH] Add optional second argument to `do_overlayfs` Allow controlling boot partition's `rw` separately from root partition's --- raspi-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raspi-config b/raspi-config index 48dbef91..5df5d1f0 100755 --- a/raspi-config +++ b/raspi-config @@ -2814,7 +2814,7 @@ do_overlayfs() { whiptail --yesno "Would you like the boot partition to be write-protected?" $DEFAULT 20 60 2 RET=$? else - RET=$1 + RET=${2:-$1} fi if [ $RET -eq $CURRENT ]; then if [ $RET -eq 0 ]; then