/etc/resolvconf/update.d/ltsp-chroots is in debian-edu-config 1.702.
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 | #!/bin/sh
#
# Update resolv.conf in LTSP chroots when the host resolv.conf is
# changed, to make sure apt keep working in the chroot.
# Make sure the logger binary is used if available
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
export PATH
sourcefile=/etc/resolv.conf
if [ ! -s $sourcefile ] ; then
# No use copying an empty file
exit 0
fi
for f in /opt/ltsp/*/etc/resolv.conf ; do
if [ -f "$f" ] && ! cmp -s $f $sourcefile ; then
msg="Updating LTSP DNS config (cp $sourcefile $f)"
# Ignore errors in case /usr/bin with logger is not yet
# mounted
logger -t debian-edu-config "$msg" 2>/dev/null || true
echo "$msg"
cp $sourcefile $f
chmod 644 $f
fi
done
|