Add "iscsi" target which install the iSCSI configuration files.

This will stop e.g. "/etc/security" complaining about these files
missing after a sucessful run of "postinstall"
This commit is contained in:
tron 2006-05-12 12:43:28 +00:00
parent 337a4c703f
commit 2d77f6d3d5
1 changed files with 14 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: postinstall,v 1.11 2006/05/12 07:16:47 tron Exp $
# $NetBSD: postinstall,v 1.12 2006/05/12 12:43:28 tron Exp $
#
# Copyright (c) 2002-2005 The NetBSD Foundation, Inc.
# All rights reserved.
@ -590,6 +590,19 @@ do_hosts()
return $?
}
#
# iscsi
#
additem iscsi "/etc/iscsi is populated"
do_iscsi()
{
[ -n "$1" ] || err 2 "USAGE: do_iscsi fix|check"
populate_dir ${op} true ${SRC_DIR}/etc/iscsi ${DEST_DIR}/etc/iscsi 600 auths
populate_dir ${op} true ${SRC_DIR}/etc/iscsi ${DEST_DIR}/etc/iscsi 644 targets
return $?
}
#
# makedev
#
@ -643,7 +656,6 @@ do_named()
#
# pam
#
# disabled for now
additem pam "/etc/pam.d is populated"
do_pam()
{