local/script/update_sn
@@ -1,4 +1,5 @@ #!/bin/sh source /etc/profile sn=`sn` if [ $? -eq 0 ] @@ -24,5 +25,12 @@ mac=$mac`echo ${sn:12:2}` #echo "mac: $mac" /usr/sbin/jsoner -s /work/config.json eth0.mac \"$mac\" echo "update mac1[$mac] ok!" echo "update mac[$mac] ok!" mac=0A:84:7E: mac=$mac`echo ${sn:8:2}`":" mac=$mac`echo ${sn:10:2}`":" mac=$mac`echo ${sn:12:2}` /usr/sbin/jsoner -s /work/config.json eth1.mac \"$mac\" echo "update mac2[$mac] ok!"