From a2d148265a64d9302dc58de6d4bb31ded5cbe9ca Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Fri, 18 Oct 2019 09:59:03 -0400 Subject: [PATCH] simplify Armbian test --- installers/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/common.sh b/installers/common.sh index 0bf1e97..50653ac 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -385,7 +385,7 @@ function optimize_php() { } function build_R1 () { - if ( strpos(file_get_contents("/etc/armbian-release"),'orangepi-r1') !== false); then + if ( file_exists(/boot/armbianEnv.txt)); then sudo sed -i "1i extraargs=net.ifnames=0" /boot/armbianEnv.txt fi }