Skip to content

Commit

Permalink
Fix serial number, perl line seems not to work
Browse files Browse the repository at this point in the history
  • Loading branch information
guysoft committed May 27, 2019
1 parent 8cd522c commit bd1a8a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

SERIAL=`cat /proc/cpuinfo | perl -n -e '/^Serial[ ]*: ([0-9a-f]{16})$/ && print "$1\n"'`
SERIAL=`cat /proc/cpuinfo | grep -i '^Serial' | awk '{ print $3 }'`

# Standard behavior - runs chrome
chromium-browser --kiosk --touch-events=enabled --disable-pinch --noerrdialogs --disable-session-crashed-bubble --app=$(head -n 1 /boot/fullpageos.txt | sed -e "s/{serial}/${SERIAL}/g")
Expand Down

0 comments on commit bd1a8a1

Please sign in to comment.