Files
2026-05-11 09:15:08 +02:00

16 lines
278 B
Bash

#!/usr/bin/env bash
GRUB_CFG="/etc/default/grub"
if [[ ! -f "$GRUB_CFG" ]]; then
echo "Error: $GRUB_CFG does not exist."
exit 1
fi
if grep -q "audit=1" "$GRUB_CFG"; then
echo "Found 'audit=1' in $GRUB_CFG."
exit 0
else
echo "'audit=1' not found in $GRUB_CFG."
exit 1
fi