Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit 47c920b97eee16ada522fe258a224f2d50e8c9e2 1 parent 2415296
@kmoore134 kmoore134 authored
Showing with 15 additions and 1 deletion.
  1. +15 −1 src-sh/pc-thinclient/resources/scripts/tcsinstall.sh
View
16 src-sh/pc-thinclient/resources/scripts/tcsinstall.sh
@@ -4,7 +4,7 @@
do_installwiz() {
installChoices=""
- for i in `ls /installscripts`
+ for i in `ls /installscripts/*.cfg`
do
installChoices="$installChoices $i $i"
done
@@ -64,6 +64,20 @@ get_nic_mac()
NIC=$(get_active_nic)
MAC=$(get_nic_mac "$NIC")
+# Check if the mac address is in the blacklist
+# Create this file with a line-by-line list of MACs to blacklist
+if [ -e "/installscripts/macblacklist" ] ; then
+ grep -q "^${MAC}" /installscripts/macblacklist
+ if [ $? -eq 0 ] ; then
+ echo "ERROR: This MAC address listed in the /installscripts/macblacklist file!"
+ echo "To install this system, remove the address: ${MAC}"
+ echo ""
+ echo "Installation HALTED!"
+ echo "[Press Enter to shutdown]"
+ shutdown -p now
+ fi
+fi
+
# Detect auto-install scripts
ASCRIPT=""
if [ -e "/installscripts/unattended.cfg" ] ; then
Please sign in to comment.
Something went wrong with that request. Please try again.