mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
Remove xe cmdline args from limine conf too
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
echo "Dell XPS Panther Lake display kernel cmdline drop-in is no longer necessary"
|
||||
echo "Dell XPS Panther Lake display kernel cmdline is no longer necessary"
|
||||
|
||||
DROP_IN="/etc/limine-entry-tool.d/dell-xps-ptl-display.conf"
|
||||
DEFAULT_LIMINE="/etc/default/limine"
|
||||
NEEDS_UPDATE=0
|
||||
|
||||
if [[ -f $DROP_IN ]]; then
|
||||
sudo rm -f "$DROP_IN"
|
||||
NEEDS_UPDATE=1
|
||||
fi
|
||||
|
||||
if [[ -f $DEFAULT_LIMINE ]] && grep -q 'xe\.enable_psr' "$DEFAULT_LIMINE"; then
|
||||
sudo sed -i -E '/^KERNEL_CMDLINE.*xe\.enable_psr/d; /^# .*(Dell XPS|Xe PSR|Panel Replay)/d' "$DEFAULT_LIMINE"
|
||||
NEEDS_UPDATE=1
|
||||
fi
|
||||
|
||||
if (( NEEDS_UPDATE )); then
|
||||
sudo limine-update
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user