blob: 306703a684762cf6fc2c5ef85b35e667380a0a91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/sh
# shellcheck shell=busybox
case "$1" in
attr)
getfattr --version | grep -F "$2" || exit 1
setfattr --version | grep -F "$2" || exit 1
# attr does not implement --version; its getopt string is
# "s:V:g:r:lqLRS", where -V takes a value, so just verify it
# is present
[ -x /usr/bin/attr ] || exit 1
;;
libattr)
# ships no executable, nothing to assert
exit 0
;;
*)
echo "Untested package: $1" >&2
exit 1
;;
esac
|