blob: 14701d40277ef0244a522864db4ee80baaecf593 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
# sudo hangs when executed under QEMU emulation (e.g. mips_24kc), so verify the
# installed files rather than running it. The version is checked in
# test-version.sh against the string compiled into the binary.
case "$1" in
sudo)
[ -x /usr/bin/sudo ] || { echo "FAIL: /usr/bin/sudo missing"; exit 1; }
[ -x /usr/sbin/visudo ] || { echo "FAIL: /usr/sbin/visudo missing"; exit 1; }
[ -f /etc/sudoers ] || { echo "FAIL: /etc/sudoers missing"; exit 1; }
;;
esac
|