mirror of
https://github.com/brain-hackers/brain-config.git
synced 2026-08-10 15:16:40 +09:00
raspi-config: pass -f flag to rm
This commit is contained in:
Vendored
+6
@@ -1,3 +1,9 @@
|
||||
raspi-config (20220201) UNRELEASED; urgency=medium
|
||||
|
||||
* pass -f flag to rm
|
||||
|
||||
-- Serge Schneider <[email protected]> Tue, 01 Feb 2022 16:02:27 +0000
|
||||
|
||||
raspi-config (20220126) bullseye; urgency=medium
|
||||
|
||||
* Modify overlay functions to match format of other nonint calls
|
||||
|
||||
+4
-8
@@ -1357,7 +1357,7 @@ do_boot_behaviour() {
|
||||
B1*)
|
||||
systemctl set-default multi-user.target
|
||||
ln -fs /lib/systemd/system/[email protected] /etc/systemd/system/getty.target.wants/[email protected]
|
||||
rm /etc/systemd/system/[email protected]/autologin.conf
|
||||
rm -f /etc/systemd/system/[email protected]/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/[email protected] /etc/systemd/system/getty.target.wants/[email protected]
|
||||
rm /etc/systemd/system/[email protected]/autologin.conf
|
||||
rm -f /etc/systemd/system/[email protected]/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 &&
|
||||
|
||||
Reference in New Issue
Block a user