Ignore:
Timestamp:
07/06/13 18:22:42 (17 months ago)
Author:
pkgdemon <pkgdemonteam@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1
Children:
d5248e1
Parents:
23421e3
Message:

Update pc-thinclient

Add code to export user input for network id and network mask to /etc/hosts.allow

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-thinclient/pc-thinclient

    r23421e3 r7d4ed95  
    221221         
    222222        # Setup rcpbind entries 
    223         cat /etc/hosts.allow 2>/dev/null | grep "192.168.2.0" >/dev/null 2>/dev/null 
    224         if [ "$?" != "0" ] ; then 
    225                 sed  -i '' 's|rpcbind : ALL : deny|rpcbind : 192.168.2.0/255.255.255.0 : allow\ 
    226 portmap : 192.168.2.0/255.255.255.0 : allow\ 
    227 rpcbind : ALL : deny|' /etc/hosts.allow 
    228         fi 
     223        sed -i -e "s|rpcbind : ALL : deny|rpcbind : $netid/$netmaskid : allow\\ 
     224portmap : $netid/$netmaskid : allow\\ 
     225rpcbind : ALL : deny|" /root/hosts.allow 
    229226 
    230227        # Add a bulk of IPs to /etc/hosts this fixes bugs with RPC timeouts 
Note: See TracChangeset for help on using the changeset viewer.