simplify Armbian test

pull/35/head
necro-nemesis 6 years ago
parent 6a60cf9f82
commit a2d148265a

@ -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
}

Loading…
Cancel
Save