tty: minor cleanup (dedup)

Fixes: cce781d46b
This commit is contained in:
Michael Shigorin 2023-07-11 07:55:33 +03:00 committed by Anton Midyukov
parent 4c9f28b89b
commit b1fbb6337f

View File

@ -17,12 +17,8 @@ if ! grep -q "$BIN" "$CFG"; then
done
fi
EXTLINUXCFG=/boot/extlinux/extlinux.conf
if [ -f "$EXTLINUXCFG" ]; then
sed -i "s/ quiet / /g;s/ quiet'/'/" "$EXTLINUXCFG"
fi
GRUBCFG=/etc/sysconfig/grub2
if [ -f "$GRUBCFG" ]; then
sed -i "s/ quiet / /g;s/ quiet'/'/" "$GRUBCFG"
fi
for c in /boot/extlinux/extlinux.conf /etc/sysconfig/grub2; do
if [ -f "$c" ]; then
sed -i "s/ quiet / /g;s/ quiet'/'/" "$c"
fi
done