blob: 816df3b3f581556f6cde46237e5ae9716eb6a759 (
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
25
26
27
28
29
30
31
32
33
|
#!/bin/sh
do_help ()
{
if [ "$FAKE_TDBTOOL_SUPPORTS_CHECK" = "yes" ] ; then
echo "check"
fi
exit 0
}
do_check ()
{
if [ "$FAKE_TDB_IS_OK" = "yes" ] ; then
echo "Database integrity is OK"
else
echo "Database is busted"
fi
exit 0
}
do_cmd ()
{
case "$*" in
*check) do_check ;;
help) do_help ;;
"") read tdb_cmd && [ -n "$tdb_cmd" ] && do_cmd $tdb_cmd ;;
*) echo "$0: Not implemented: $*" ; exit 1 ;;
esac
}
do_cmd $*
exit 0
|