Michael Hunter wrote:
> Please look at /net/coupe.eng/builds/mph/nwam1_work/webrev for:
>
>   11865 upgrade needs to cope with existing NIS configurations
>   11978 nwamd exiting due to an assertion
>   12025 core: wifi thread and destruction of object warring
>   
net-loc: I don't now if sed is able to use to the $USER_LOC_PATH and 
other variables.  If yes, it would be good to use these.

net-loc: nit: might be worth defining some constants for files like 
create_loc_legacy and create-loc_user.

net-loc:599-628 nits: $GREP instead of grep, and $SEC instead of sed

net-loc:599-603 Hate to add another complexity to the User location, but 
"ipfilter-config-file" is hacked to achieve two different things.  Its 
commented in net-nwam:267-270.  If firewall_config_default/policy 
property of ipfilter is set to "none", "allow", or "deny", 
ipfilter-config-file saves this value as /none, /allow, or /deny 
respectively (The / is necessary because the property expects an 
absolute path).  If the policy property is "custom", then 
ipfilter-config-file has the path to file (just like the other 
*-config-file) properties.  There is no need to append to the 
copy_user_files script if  /none, /allow or /deny exist. Maybe:
        $GREP "ipfilter-config-file" 
/etc/svc/volatile/nwam/create_loc_legacy | \
        $GREP -v "/none" | $GREP -v "/deny" | $GREP -v "/allow" | \
        $SED ....
couldn't figure out a way to collapsed the "grep -v"s.

net-loc:654-655 We still need the addpg line now that we moved to two 
different property groups.  property group "location" may not exist.

net-nwam:314,318,322,326,330,334 nits: other parts of this script use 
"-n" to check for "not null".  would be good for consistency at these 
lines too.

Anurag

Reply via email to