Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use user overwrite param for boot behaviour func in raspi-config #7

Draft
wants to merge 1 commit into
base: bookworm
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cancel-rename
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ if [ "$(raspi-config nonint get_boot_cli)" -ne 0 ]; then
fi
IMG_VER="$(grep -s -m1 -o '[[:digit:]]\{4\}-[[:digit:]]\{2\}-[[:digit:]]\{2\}' /etc/rpi-issue)"
if [ -f /var/lib/userconf-pi/autologin ] || [ "$IMG_VER" == "2022-04-04" ]; then
SUDO_USER="$1" raspi-config nonint do_boot_behaviour B4
SUDO_USER="$1" raspi-config nonint do_boot_behaviour B4 $1
else
SUDO_USER="$1" raspi-config nonint do_boot_behaviour B3
SUDO_USER="$1" raspi-config nonint do_boot_behaviour B3 $1
fi

# remove the autostart for the wizard
Expand All @@ -32,9 +32,9 @@ if [ "$(raspi-config nonint get_boot_cli)" -ne 0 ]; then
EOF
else
if [ -f /var/lib/userconf-pi/autologin ]; then
SUDO_USER="$1" raspi-config nonint do_boot_behaviour B2
SUDO_USER="$1" raspi-config nonint do_boot_behaviour B2 $1
else
SUDO_USER="$1" raspi-config nonint do_boot_behaviour B1
SUDO_USER="$1" raspi-config nonint do_boot_behaviour B1 $1
fi
fi

Expand Down