Skip to content
Snippets Groups Projects
Commit 1189d070 authored by Bob Mottram's avatar Bob Mottram
Browse files

original interfaces file

parent af37d67b
No related branches found
No related tags found
No related merge requests found
......@@ -58,8 +58,8 @@ function hotspot_off {
rm /etc/hostapd/hostapd.conf
if [ -f /etc/network/interfaces_old ]; then
cp /etc/network/interfaces_old /etc/network/interfaces
if [ -f /etc/network/interfaces_original ]; then
cp /etc/network/interfaces_original /etc/network/interfaces
else
echo '# interfaces(5) file used by ifup(8) and ifdown(8)' > /etc/network/interfaces
echo '# Include files from /etc/network/interfaces.d:' >> /etc/network/interfaces
......@@ -110,9 +110,11 @@ function hotspot_on {
echo '## Accept all MAC address ###' >> /etc/hostapd/hostapd.conf
echo 'macaddr_acl=0' >> /etc/hostapd/hostapd.conf
if ! grep -q "# Hotspot" /etc/network/interfaces; then
cp /etc/network/interfaces /etc/network/interfaces_old
fi
if [ ! -f /etc/network/interfaces_original ]; then
if ! grep -q "# Hotspot" /etc/network/interfaces; then
cp /etc/network/interfaces /etc/network/interfaces_original
fi
fi
echo '# Hotspot' > /etc/network/interfaces
echo 'auto lo br0' >> /etc/network/interfaces
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment