summaryrefslogtreecommitdiffstats
path: root/debian/samba.postinst
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/samba.postinst17
1 files changed, 0 insertions, 17 deletions
diff --git a/debian/samba.postinst b/debian/samba.postinst
index ceb0b64..f15dfa5 100644
--- a/debian/samba.postinst
+++ b/debian/samba.postinst
@@ -2,23 +2,6 @@
set -e
-nmbd_error_handler() {
- if [ -d /sys/class/net/lo ] && ls /sys/class/net | grep -qv ^lo$; then
- # https://bugs.debian.org/893762
- echo 'WARNING: nmbd failed to start as there is no non-loopback interfaces available.'
- echo 'Either add an interface or set "disable netbios = yes" in smb.conf'
- return 0
- elif command -v ip > /dev/null && ip a show | grep '^[[:space:]]*inet ' | grep -vq ' lo$'; then
- # https://bugs.debian.org/859526
- echo 'WARNING: nmbd failed to start as there is no local IPv4 non-loopback interfaces available.'
- echo 'Either add an IPv4 address or set "disable netbios = yes" in smb.conf'
- return 0
- else
- echo 'ERROR: nmbd failed to start.'
- return 1 # caught by set -e
- fi
-}
-
# We generate several files during the postinst, and we don't want
# them to be readable only by root.
umask 022