Dirty BOOK validation hack. Nedd to be fixed
This commit is contained in:
parent
1891150046
commit
760c2f10f5
1 changed files with 8 additions and 1 deletions
|
@ -205,6 +205,14 @@ inline_doc
|
||||||
TARGET) validate_target ;;
|
TARGET) validate_target ;;
|
||||||
GRSECURITY_HOST) validate_against_str "x0x x1x" ;;
|
GRSECURITY_HOST) validate_against_str "x0x x1x" ;;
|
||||||
|
|
||||||
|
# BOOK validation. Very ugly, need be fixed
|
||||||
|
BOOK) if [[ "${WC}" = "1" ]] ; then
|
||||||
|
validate_dir -z -d
|
||||||
|
else
|
||||||
|
validate_against_str "x${PROGNAME}-developmentx xlfs-udev_updatex"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
# Validate directories, testable states:
|
# Validate directories, testable states:
|
||||||
# fatal -z -d -w,
|
# fatal -z -d -w,
|
||||||
# warning -z+ -w+
|
# warning -z+ -w+
|
||||||
|
@ -215,7 +223,6 @@ inline_doc
|
||||||
# warning -z+
|
# warning -z+
|
||||||
FSTAB) validate_file -z+ -e -s ;;
|
FSTAB) validate_file -z+ -e -s ;;
|
||||||
CONFIG) validate_file -z+ -e -s ;;
|
CONFIG) validate_file -z+ -e -s ;;
|
||||||
BOOK) [[ "${WC}" = 1 ]] && validate_file -z -e -s ;;
|
|
||||||
BOOT_CONFIG) [[ "${METHOD}" = "boot" ]] && validate_file -z -e -s ;;
|
BOOT_CONFIG) [[ "${METHOD}" = "boot" ]] && validate_file -z -e -s ;;
|
||||||
|
|
||||||
# Treatment of 'special' parameters
|
# Treatment of 'special' parameters
|
||||||
|
|
Reference in a new issue