diff options
| author | abs <abs@NetBSD.org> | 2003-01-21 14:28:55 +0000 |
|---|---|---|
| committer | abs <abs@NetBSD.org> | 2003-01-21 14:28:55 +0000 |
| commit | cb588f7bde9a74b2fa25e8e853b4dfd4e46d02c3 (patch) | |
| tree | 9e0e7a803cd8e53cdd725d7cf62c9f4678383070 /etc | |
| parent | 0c18ab1d396b754f150641ff907eb88e08b814c8 (diff) | |
Among the many things postinstall should check are up to date is... postinstall
Diffstat (limited to 'etc')
| -rwxr-xr-x | etc/postinstall | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/etc/postinstall b/etc/postinstall index 7829ad2a58b..b2b3dec2b4e 100755 --- a/etc/postinstall +++ b/etc/postinstall @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: postinstall,v 1.48 2003/01/16 15:26:14 minoura Exp $ +# $NetBSD: postinstall,v 1.49 2003/01/21 14:28:55 abs Exp $ # # Copyright (c) 2002 The NetBSD Foundation, Inc. # All rights reserved. @@ -289,6 +289,23 @@ find_file_in_dirlist() # # +# rc +# +additem postinstall "/etc/postinstall being up to date" +do_postinstall() +{ + [ -n "$1" ] || err 2 "USAGE: do_postinstall fix|check" + op=$1 + failed=0 + + compare_dir ${op} ${SRC_DIR}/etc ${DEST_DIR}/etc 555 \ + postinstall + failed=$(( ${failed} + $? )) + + return ${failed} +} + +# # defaults # additem defaults "/etc/defaults/ being up to date" |
