summaryrefslogtreecommitdiff
path: root/modules/pam_unix/need_nsl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pam_unix/need_nsl.sh')
-rwxr-xr-xmodules/pam_unix/need_nsl.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/pam_unix/need_nsl.sh b/modules/pam_unix/need_nsl.sh
new file mode 100755
index 00000000..23f38ec0
--- /dev/null
+++ b/modules/pam_unix/need_nsl.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+list=`/bin/ls /lib/libnsl.so.* 2> /dev/null`
+if [ -z "$list" ]; then
+ echo no
+else
+ echo yes
+fi