blob: 05a95ef40fa13deebfea40f9d7abaf70959200c7 (
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/bash -e
cat <<EOF
I can automatically include various information about your samba configuration
in your bug report. This information may help to diagnose your problem.
EOF
for config in /etc/samba/smb.conf /var/lib/samba/dhcp.conf ; do
if [ -f $config ]; then
yesno "May I include your $config configuration file? [Y/n] " yep
if [ "$REPLY" = "yep" ]; then
echo "* $config present, and attached" >&3
echo "-- BEGIN ATTACHMENTS --" >&3
echo "$config" >&3
echo "-- END ATTACHMENTS --" >&3
else
echo "* $config present, but not attached" >&3
fi
else
echo "* $config not present" >&3
fi
done
|