Module Name: src
Committed By: christos
Date: Thu Jan 30 01:39:40 UTC 2020
Modified Files:
src/usr.sbin/postinstall: postinstall.in
Log Message:
populate autofs files
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/postinstall/postinstall.in
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/postinstall/postinstall.in
diff -u src/usr.sbin/postinstall/postinstall.in:1.12 src/usr.sbin/postinstall/postinstall.in:1.13
--- src/usr.sbin/postinstall/postinstall.in:1.12 Sun Dec 29 17:19:13 2019
+++ src/usr.sbin/postinstall/postinstall.in Wed Jan 29 20:39:40 2020
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: postinstall.in,v 1.12 2019/12/29 22:19:13 tsutsui Exp $
+# $NetBSD: postinstall.in,v 1.13 2020/01/30 01:39:40 christos Exp $
#
# Copyright (c) 2002-2015 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -1024,6 +1024,40 @@ do_envsys()
}
#
+# autofs config files
+#
+additem autofsconfig "automounter configuration files"
+do_autofsconfig()
+{
+ [ -n "$1" ] || err 3 "USAGE: do_autofsconfig fix|check"
+ local autofs_files="
+include_ldap
+include_nis
+special_hosts
+special_media
+special_noauto
+special_null
+"
+ op="$1"
+ failed=0
+ if [ "$op" = "fix" ]; then
+ mkdir -p "${DEST_DIR}/etc/autofs"
+ fi
+ failed=$(( ${failed} + $? ))
+ populate_dir "$op" false "${SRC_DIR}/etc" \
+ "${DEST_DIR}/etc" \
+ 444 \
+ auto_master
+ failed=$(( ${failed} + $? ))
+ populate_dir "$op" false "${SRC_DIR}/etc/autofs" \
+ "${DEST_DIR}/etc/autofs" \
+ 444 \
+ ${autofs_files}
+ return ${failed}
+}
+
+
+#
# X11 fontconfig
#
additem fontconfig "X11 font configuration is up to date"