Changeset 47c920b


Ignore:
Timestamp:
10/26/13 10:00:03 (9 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2
Children:
7aa6eec
Parents:
2415296
Message:

Update to pc-thinclient:

Add a method of listing MAC addresses in a blacklist file:

/installscripts/macblacklist

If a system with a MAC address in this file connects, the client
will display an error and refuse to continue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-thinclient/resources/scripts/tcsinstall.sh

    rae0a5c8 r47c920b  
    55 
    66  installChoices="" 
    7   for i in `ls /installscripts` 
     7  for i in `ls /installscripts/*.cfg` 
    88  do 
    99     installChoices="$installChoices $i $i" 
     
    6565MAC=$(get_nic_mac "$NIC") 
    6666 
     67# Check if the mac address is in the blacklist 
     68# Create this file with a line-by-line list of MACs to blacklist 
     69if [ -e "/installscripts/macblacklist" ] ; then 
     70   grep -q "^${MAC}" /installscripts/macblacklist 
     71   if [ $? -eq 0 ] ; then 
     72      echo "ERROR: This MAC address listed in the /installscripts/macblacklist file!" 
     73      echo "To install this system, remove the address: ${MAC}" 
     74      echo "" 
     75      echo "Installation HALTED!" 
     76      echo "[Press Enter to shutdown]" 
     77      shutdown -p now 
     78   fi 
     79fi 
     80 
    6781# Detect auto-install scripts 
    6882ASCRIPT="" 
Note: See TracChangeset for help on using the changeset viewer.