33 # name services. This includes a final re-configuration of the
34 # interfaces.
35 #
36
37 . /lib/svc/share/smf_include.sh
38
39 #
40 # In a shared-IP zone we need this service to be up, but all of the work
41 # it tries to do is irrelevant (and will actually lead to the service
42 # failing if we try to do it), so just bail out.
43 # In the global zone and exclusive-IP zones we proceed.
44 #
45 smf_configure_ip || exit $SMF_EXIT_OK
46
47 # Configure IPv6 Default Address Selection.
48 if [ -f /etc/inet/ipaddrsel.conf ]; then
49 /usr/sbin/ipaddrsel -f /etc/inet/ipaddrsel.conf
50 fi
51
52 #
53 # If explicit IPMP groups are being used, in.mpathd will already be started.
54 # However, if TRACK_INTERFACES_ONLY_WITH_GROUPS=no and no explicit IPMP
55 # groups have been configured, then it still needs to be started. So, fire
56 # it up in "adopt" mode; if there are no interfaces it needs to manage, it
57 # will automatically exit.
58 #
59 /usr/bin/pgrep -x -u 0 -z `smf_zonename` in.mpathd >/dev/null 2>&1 || \
60 /usr/lib/inet/in.mpathd -a
61
62 #
63 # Set the RFC 1948 entropy, regardless of if I'm using it or not. If present,
64 # use the encrypted root password as a source of entropy. Otherwise,
65 # just use the pre-set (and hopefully difficult to guess) entropy that
66 # tcp used when it loaded.
67 #
68 encr=`/usr/bin/awk -F: '/^root:/ {print $2}' /etc/shadow`
69 [ -z "$encr" ] || /usr/sbin/ndd -set /dev/tcp tcp_1948_phrase $encr
70 unset encr
71
72 # Set the SDP system Policy. This needs to happen after basic
73 # networking is up but before any networking services that might
74 # want to use SDP are enabled
75 if [ -f /usr/sbin/sdpadm -a -f /etc/sdp.conf ]; then
76 . /etc/sdp.conf
77 if [ "$sysenable" = "1" ]; then
78 /usr/sbin/sdpadm enable
79 fi
80 fi
81
82 #
|
33 # name services. This includes a final re-configuration of the
34 # interfaces.
35 #
36
37 . /lib/svc/share/smf_include.sh
38
39 #
40 # In a shared-IP zone we need this service to be up, but all of the work
41 # it tries to do is irrelevant (and will actually lead to the service
42 # failing if we try to do it), so just bail out.
43 # In the global zone and exclusive-IP zones we proceed.
44 #
45 smf_configure_ip || exit $SMF_EXIT_OK
46
47 # Configure IPv6 Default Address Selection.
48 if [ -f /etc/inet/ipaddrsel.conf ]; then
49 /usr/sbin/ipaddrsel -f /etc/inet/ipaddrsel.conf
50 fi
51
52 #
53 # Set the RFC 1948 entropy, regardless of if I'm using it or not. If present,
54 # use the encrypted root password as a source of entropy. Otherwise,
55 # just use the pre-set (and hopefully difficult to guess) entropy that
56 # tcp used when it loaded.
57 #
58 encr=`/usr/bin/awk -F: '/^root:/ {print $2}' /etc/shadow`
59 [ -z "$encr" ] || /usr/sbin/ndd -set /dev/tcp tcp_1948_phrase $encr
60 unset encr
61
62 # Set the SDP system Policy. This needs to happen after basic
63 # networking is up but before any networking services that might
64 # want to use SDP are enabled
65 if [ -f /usr/sbin/sdpadm -a -f /etc/sdp.conf ]; then
66 . /etc/sdp.conf
67 if [ "$sysenable" = "1" ]; then
68 /usr/sbin/sdpadm enable
69 fi
70 fi
71
72 #
|