/usr/lib/debian-edu-config/testsuite/automount is in debian-edu-config 1.818+deb8u2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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 34 35 | #!/bin/sh
set -e
success() { echo "success: $0:" $@; }
error() { echo "error: $0:" $@; }
PROFILE=
if test -r /etc/debian-edu/config ; then
. /etc/debian-edu/config
fi
# Automount is not used on the Main-Server, Roaming workstation and
# Standalone profiles.
if echo "$PROFILE" | egrep -q 'Main-Server|Roaming-Workstation|Standalone' ; then
exit 0
fi
if pidof automount > /dev/null ; then
success "automount is running."
else
error "automount is not running."
exit 1
fi
# Try to visit the default home directory, to verify that it exist and
# trigger autofs to mount it.
if cd /skole/tjener/home0/ ; then
success "directory /skole/tjener/home0/ exist"
if grep -q /skole/tjener/home0 /proc/mounts ; then
success "mount point /skole/tjener/home0/ exist."
fi
else
error "unable to cd into /skole/tjener/home0/ (is DNS name of this machine in required netgroup?)"
fi
|