Developing lightweight computation at the DSG edge

Commit 77b42cd3 authored by p4u's avatar p4u
Browse files

Added condition to check if wifi command already exists in rc.local

parent d5dd6782
......@@ -3,6 +3,8 @@
# Temporal script to re-enable wifi after the boot
# this is to fix a temporaly issue when you are using non-standard wifi chanels
sed -i -e "/^exit 0/d" /etc/rc.local
echo "wifi" >> /etc/rc.local
if [ $(cat /etc/rc.local | grep -c ^wifi) -lt 1 ]; then
sed -i -e "/^exit 0/d" /etc/rc.local
echo "wifi" >> /etc/rc.local
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment