Module Name: src
Committed By: tron
Date: Sun Feb 13 20:25:35 UTC 2011
Modified Files:
src/usr.sbin/postinstall: postinstall
Log Message:
Install "etc/gpio.conf" if it is missing.
To generate a diff of this commit:
cvs rdiff -u -r1.113 -r1.114 src/usr.sbin/postinstall/postinstall
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
diff -u src/usr.sbin/postinstall/postinstall:1.113 src/usr.sbin/postinstall/postinstall:1.114
--- src/usr.sbin/postinstall/postinstall:1.113 Sun Feb 13 20:17:26 2011
+++ src/usr.sbin/postinstall/postinstall Sun Feb 13 20:25:35 2011
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: postinstall,v 1.113 2011/02/13 20:17:26 tron Exp $
+# $NetBSD: postinstall,v 1.114 2011/02/13 20:25:35 tron Exp $
#
# Copyright (c) 2002-2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -819,6 +819,23 @@
}
#
+# gpio
+#
+additem gpio "gpio configuration is up to date"
+do_gpio()
+{
+ [ -n "$1" ] || err 3 "USAGE: do_gpio fix|check"
+ op="$1"
+ failed=0
+
+ populate_dir "$op" true "${SRC_DIR}/etc" "${DEST_DIR}/etc" 644 \
+ gpio.conf
+ failed=$(( ${failed} + $? ))
+
+ return ${failed}
+}
+
+#
# hosts
#
additem hosts "/etc/hosts being up to date"