diff --git a/usr.sbin/postinstall/postinstall b/usr.sbin/postinstall/postinstall index 8448507de809..b9f6d5614430 100755 --- a/usr.sbin/postinstall/postinstall +++ b/usr.sbin/postinstall/postinstall @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: postinstall,v 1.94 2009/04/21 16:08:57 joerg Exp $ +# $NetBSD: postinstall,v 1.95 2009/05/12 01:53:07 jnemeth Exp $ # # Copyright (c) 2002-2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -716,6 +716,23 @@ do_defaults() return ${failed} } +# +# dhcpcd +# +additem dhcpcd "dhcpcd configuration is up to date" +do_dhcpcd() +{ + [ -n "$1" ] || err 3 "USAGE: do_dhcpcd fix|check" + op="$1" + failed=0 + + populate_dir "$op" true "${SRC_DIR}/etc" "${DEST_DIR}/etc" 644 \ + dhcpcd.conf + failed=$(( ${failed} + $? )) + + return ${failed} +} + # # envsys #