Changeset 368153a


Ignore:
Timestamp:
May 31, 2013 3:49:31 PM (11 months ago)
Author:
pkgdemon <pkgdemonteam@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1
Children:
df9276a
Parents:
7e781dd
Message:

Update pc-thinclient

File:
1 edited

Legend:

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

    r7e781dd r368153a  
    181181inetd_enable=\"YES\" 
    182182 
     183        # Add firewall exception 
     184        if [ -e "/etc/pf.conf" ] ; then 
     185          cat /etc/pf.conf | grep "pass in on ${NIC} all" >/dev/null 2>/dev/null 
     186          if [ "$?" != "0" ] ; then 
     187                # Setup the firewall exclusion for this NIC 
     188                echo "pass in on ${NIC} all" >> /etc/pf.conf 
     189          fi 
     190        fi 
     191 
    183192        # Add some entries for /etc/exports 
    184193        cat /etc/exports 2>/dev/null | grep "$PXEWORLD" >/dev/null 2>/dev/null 
     
    191200        if [ "$?" != "0" ] ; then 
    192201                echo "tftp   dgram   udp     wait    root    /usr/libexec/tftpd      tftpd -l -s ${PXEWORLD}" >> /etc/inetd.conf 
     202        fi 
     203         
     204        # Setup rcpbind entries 
     205        cat /etc/hosts.allow 2>/dev/null | grep "192.168.2.0" >/dev/null 2>/dev/null 
     206        if [ "$?" != "0" ] ; then 
     207                sed  -i '' 's|rpcbind : ALL : deny|rpcbind : 192.168.2.0/255.255.255.0 : allow\ 
     208portmap : 192.168.2.0/255.255.255.0 : allow\ 
     209rpcbind : ALL : deny|' /etc/hosts.allow 
    193210        fi 
    194211 
Note: See TracChangeset for help on using the changeset viewer.