migrations: keep system helpers sudo-compatible

This commit is contained in:
Ryan Hughes
2026-06-04 18:35:01 -04:00
parent bf14f69017
commit 27f6d9d364
12 changed files with 27 additions and 27 deletions
+5 -5
View File
@@ -4,15 +4,15 @@ DROP_IN="/etc/limine-entry-tool.d/intel-panther-lake-fred.conf"
DEFAULT_LIMINE="/etc/default/limine"
if omarchy-hw-intel-ptl; then
if [[ ! -f "$DROP_IN" ]] || ! grep -q 'fred=on' "$DROP_IN"; then
mkdir -p /etc/limine-entry-tool.d
cat > "$DROP_IN" <<EOF
if [[ ! -f $DROP_IN ]] || ! grep -q 'fred=on' "$DROP_IN"; then
sudo mkdir -p /etc/limine-entry-tool.d
cat <<EOF | sudo tee "$DROP_IN" >/dev/null
# Intel Panther Lake FRED support
KERNEL_CMDLINE[default]+=" fred=on"
EOF
fi
if [[ -f "$DEFAULT_LIMINE" ]] && ! grep -q 'fred=on' "$DEFAULT_LIMINE"; then
cat "$DROP_IN" >> "$DEFAULT_LIMINE"
if [[ -f $DEFAULT_LIMINE ]] && ! grep -q 'fred=on' "$DEFAULT_LIMINE"; then
cat "$DROP_IN" | sudo tee -a "$DEFAULT_LIMINE" >/dev/null
fi
fi