20180629_jeffrey - silenceuncrio/diary GitHub Wiki
0905
review
0950
่ฆ้ๅง้ฒ่ก BGP 30K routes ็้ฉ่ญ
1315
็ทๆฅไบไปถ
use the '/etc/mcsv' as the default 'hw_mcsv'
diff --git a/proscend/memory_fs/emmc/default/rootfs/etc/rc.local b/proscend/memory_fs/emmc/default/rootfs/etc/rc.local
old mode 100755
new mode 100644
index 637b47f..b1bbf40
--- a/proscend/memory_fs/emmc/default/rootfs/etc/rc.local
+++ b/proscend/memory_fs/emmc/default/rootfs/etc/rc.local
@@ -156,7 +156,7 @@ then
HW_MCSV=$(cat "$sysinfo_backup_app_1_path" | grep HW_MCSV | awk -F"=" '{ print $2 }')
if [ "$HW_MCSV" = "" ]
then
- HW_MCSV="0168000000000000"
+ HW_MCSV=$(cat /etc/mcsv)
echo "WARNING: uboot env hw_mcsv set to default - $HW_MCSV"
fw_setenv hw_mcsv "$HW_MCSV"
else
diff --git a/proscend/memory_fs/nandflash/default/rootfs/etc/rc.local b/proscend/memory_fs/nandflash/default/rootfs/etc/rc.local
old mode 100755
new mode 100644
index e3bb59d..5fbd323
--- a/proscend/memory_fs/nandflash/default/rootfs/etc/rc.local
+++ b/proscend/memory_fs/nandflash/default/rootfs/etc/rc.local
@@ -168,7 +168,7 @@ then
HW_MCSV=$(cat "$sysinfo_backup_app_1_path" | grep HW_MCSV | awk -F"=" '{ print $2 }')
if [ "$HW_MCSV" = "" ]
then
- HW_MCSV="012C000000000000"
+ HW_MCSV=$(cat /etc/mcsv)
echo "WARNING: uboot env hw_mcsv set to default - $HW_MCSV"
fw_setenv hw_mcsv "$HW_MCSV"
else