[LTP] [PATCH v2 1/1] ver_linux: Print filesystems
Cyril Hrubis
chrubis@suse.cz
Wed Nov 3 15:36:21 CET 2021
Hi!
> +echo 'mounted filesystems (df):'
> +df_opt=
> +if ! (df -h 2>&1 | grep -i -q -e 'unknown option' -e 'invalid option'); then df_opt="$df_opt -h"; fi
> +if ! (df -T 2>&1 | grep -i -q -e 'unknown option' -e 'invalid option'); then df_opt="$df_opt -T"; fi
Uff that's ugly, can't we simply depend on df returning non-zero on
invalid option?
> +df $df_opt
> +
> echo
> if is_enabled /sys/module/apparmor/parameters/enabled; then
> echo 'AppArmor enabled'
> --
> 2.33.1
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list