build: fix firmware version output for r1s
This commit is contained in:
@@ -66,11 +66,13 @@ if [ $DEVICE != 'r1s' ]; then
|
|||||||
sed -i '/arm\/cpuinfo/a\\t$(INSTALL_DIR) $(1)/www/luci-static/resources/view/status/include' $mf_autcore
|
sed -i '/arm\/cpuinfo/a\\t$(INSTALL_DIR) $(1)/www/luci-static/resources/view/status/include' $mf_autcore
|
||||||
sed -i '/arm\/cpuinfo/a\\t$(INSTALL_BIN) ./files/x86/ethinfo $(1)/sbin/ethinfo' $mf_autcore
|
sed -i '/arm\/cpuinfo/a\\t$(INSTALL_BIN) ./files/x86/ethinfo $(1)/sbin/ethinfo' $mf_autcore
|
||||||
|
|
||||||
# inject the firmware version
|
fi
|
||||||
strDate=`TZ=UTC-8 date +%Y-%m-%d`
|
|
||||||
status_pages=`find package/ -follow -type f \( -path '*/autocore/files/arm/index.htm' -o -path '*/autocore/files/x86/index.htm' -o -path '*/autocore/files/arm/rpcd_10_system.js' -o -path '*/autocore/files/x86/rpcd_10_system.js' \)`
|
# inject the firmware version
|
||||||
for status_page in $status_pages; do
|
strDate=`TZ=UTC-8 date +%Y-%m-%d`
|
||||||
case $status_page in
|
status_pages=`find package/ -follow -type f \( -path '*/autocore/files/arm/index.htm' -o -path '*/autocore/files/x86/index.htm' -o -path '*/autocore/files/arm/rpcd_10_system.js' -o -path '*/autocore/files/x86/rpcd_10_system.js' \)`
|
||||||
|
for status_page in $status_pages; do
|
||||||
|
case $status_page in
|
||||||
*htm)
|
*htm)
|
||||||
line_number_FV=`grep -n 'Firmware Version' $status_page | cut -d: -f 1`
|
line_number_FV=`grep -n 'Firmware Version' $status_page | cut -d: -f 1`
|
||||||
sed -i '/ver\./d' $status_page
|
sed -i '/ver\./d' $status_page
|
||||||
@@ -83,10 +85,8 @@ if [ $DEVICE != 'r1s' ]; then
|
|||||||
sed -i '/Firmware Version/d' $status_page
|
sed -i '/Firmware Version/d' $status_page
|
||||||
sed -i $line_number_FV' a _('\''Firmware Version'\''), pfv,' $status_page
|
sed -i $line_number_FV' a _('\''Firmware Version'\''), pfv,' $status_page
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
# little optimization argon css
|
# little optimization argon css
|
||||||
css_file=`find package/ -follow -type f -path '*/argon/css/cascade.css'`
|
css_file=`find package/ -follow -type f -path '*/argon/css/cascade.css'`
|
||||||
|
|||||||
Reference in New Issue
Block a user