My Script doesnt seem to be working any ideas. Can anyone see what is wrong.
#!/bin/sh
#get serial number
serial=$(system_profiler SPHardwareDataType | awk '/Serial/ {print $4}')
#Define Laptop
laptop=$LPT
computerName="$LPT-$serial"
# Set the ComputerName, HostName and LocalHostName
/usr/sbin/scutil --set ComputerName "$computerName"
/usr/sbin/scutil --set HostName "$computerName"
/usr/sbin/scutil --set LocalHostName "$computerName"