mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-11-05 17:58:04 +09:00
raspi-config: pass -f flag to rm
This commit is contained in:
parent
7ebef51a48
commit
750dde158a
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
raspi-config (20220201) UNRELEASED; urgency=medium
|
||||
|
||||
* pass -f flag to rm
|
||||
|
||||
-- Serge Schneider <serge@raspberrypi.com> Tue, 01 Feb 2022 16:02:27 +0000
|
||||
|
||||
raspi-config (20220126) bullseye; urgency=medium
|
||||
|
||||
* Modify overlay functions to match format of other nonint calls
|
||||
|
12
raspi-config
12
raspi-config
@ -1357,7 +1357,7 @@ do_boot_behaviour() {
|
||||
B1*)
|
||||
systemctl set-default multi-user.target
|
||||
ln -fs /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
|
||||
rm /etc/systemd/system/getty@tty1.service.d/autologin.conf
|
||||
rm -f /etc/systemd/system/getty@tty1.service.d/autologin.conf
|
||||
;;
|
||||
B2*)
|
||||
systemctl set-default multi-user.target
|
||||
@ -1372,7 +1372,7 @@ EOF
|
||||
if [ -e /etc/init.d/lightdm ]; then
|
||||
systemctl set-default graphical.target
|
||||
ln -fs /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@tty1.service
|
||||
rm /etc/systemd/system/getty@tty1.service.d/autologin.conf
|
||||
rm -f /etc/systemd/system/getty@tty1.service.d/autologin.conf
|
||||
sed /etc/lightdm/lightdm.conf -i -e "s/^autologin-user=.*/#autologin-user=/"
|
||||
disable_raspi_config_at_boot
|
||||
else
|
||||
@ -1943,9 +1943,7 @@ Exec=/usr/lib/raspi-config/cmstart.sh
|
||||
EOF
|
||||
STATUS=enabled
|
||||
elif [ $RET -eq 1 ]; then
|
||||
if [ -e /etc/xdg/autostart/xcompmgr.desktop ]; then
|
||||
rm /etc/xdg/autostart/xcompmgr.desktop
|
||||
fi
|
||||
rm -f /etc/xdg/autostart/xcompmgr.desktop
|
||||
STATUS=disabled
|
||||
else
|
||||
return $RET
|
||||
@ -1974,9 +1972,7 @@ do_glamor() {
|
||||
if [ $RET -eq 0 ]; then
|
||||
systemctl disable glamor-test.service
|
||||
systemctl stop glamor-test.service
|
||||
if [ -e /usr/share/X11/xorg.conf.d/20-noglamor.conf ] ; then
|
||||
rm /usr/share/X11/xorg.conf.d/20-noglamor.conf
|
||||
fi
|
||||
rm -f /usr/share/X11/xorg.conf.d/20-noglamor.conf
|
||||
STATUS=enabled
|
||||
elif [ $RET -eq 1 ]; then
|
||||
systemctl enable glamor-test.service &&
|
||||
|
Loading…
Reference in New Issue
Block a user