# vim: set ft=make :
# Reenable rmlint trim feature
[group("system")]
enable-rmlint ACTION="":
#!/usr/bin/bash
source /usr/lib/ujust/ujust.sh
OPTION={{ ACTION }}
STATUS="$(cat /etc/conf.d/btrfs-dedup | grep RMLINT_SKIP=\"1\")"
if [[ $STATUS != "" ]]; then
RMLINT_STATE="${red}${b}not enabled${n}"
else
RMLINT_STATE="${green}${b}already enabled${n}"
fi
if [ "$OPTION" == "help" ]; then
echo "Usage: ujust enable-rmlint