Permalink
Browse files

Add MAC address detection to /usr/local/bin/concerto

  • Loading branch information...
asquared committed Apr 24, 2012
1 parent 060a640 commit 0ad2f604be53f18288b3af47049f14653e3f3d96
Showing with 3 additions and 1 deletion.
  1. +3 −1 config/includes.chroot/usr/local/bin/concerto
@@ -1,6 +1,8 @@
#!/bin/sh
-APP_URL="http://www.example.com/"
+MACADDR=`/sbin/ifconfig | perl -ne 'if (/(([0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2})/) { print $1; exit; }'`
+
+APP_URL="http://signage.rpi.edu/?mac=$MACADDR"
for param in `cat /proc/cmdline`
do

0 comments on commit 0ad2f60

Please sign in to comment.