aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/lib
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2019-09-20 14:07:56 +0200
committerChristian Lamparter <chunkeey@gmail.com>2019-09-21 22:17:39 +0200
commit5b964219644cc78e8ddfc4d29289c7d31be66489 (patch)
treed5c2dc0e0deef73aac4e5c5e69ae47906c9b63d4 /target/linux/ramips/base-files/lib
parent66b7c82bb1767d0c4c1e62ae8051154f182ed2d7 (diff)
downloadupstream-5b964219644cc78e8ddfc4d29289c7d31be66489.tar.gz
upstream-5b964219644cc78e8ddfc4d29289c7d31be66489.tar.bz2
upstream-5b964219644cc78e8ddfc4d29289c7d31be66489.zip
ramips: replace backticks by $(...)
This replaces deprecated backticks by more versatile $(...) syntax. While at it, remove some useless cat commands and deprecated egrep commands. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/base-files/lib')
-rw-r--r--target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
index a395956d04..003a4dda7b 100644
--- a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
+++ b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
@@ -4,7 +4,7 @@
#
ramips_set_preinit_iface() {
- RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350|MT7628|MT7688|MT7620|MT7621)"`
+ RT3X5X=$(grep -E "(RT3.5|RT5350|MT7628|MT7688|MT7620|MT7621)" /proc/cpuinfo)
if [ -n "${RT3X5X}" ]; then
# The ethernet switch driver enables VLAN by default, but