Skip to content

Commit

Permalink
Add MAC address detection to /usr/local/bin/concerto
Browse files Browse the repository at this point in the history
  • Loading branch information
asquared committed Apr 24, 2012
1 parent 060a640 commit 0ad2f60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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
Expand Down

0 comments on commit 0ad2f60

Please sign in to comment.