Crap. vi says 'wifi_apmode.cgi' is read only and I don't know how to set
/tmp/tcloop/pcp-7.0.0-www in RW mode. A remount doesn't do it.

Anyways.
/usr/local/etc/pcp/hostapd.conf
Needs to be modified with 
Code:
--------------------
    
  #bridge=
--------------------

(for sed to succeed in the cgi)

wifi_apmode.cgi
needs to be modified with an addition starting near line 86 in
set_hostapd_conf(), something like that
Code:
--------------------
    
  case $AP_BRIDGE in
  0) # Comment any bridge= stanza
  sudo sed -i "s/\(^bridge=\).*/#\1/" $HOSTAPDCONF
  echo '[ INFO ] AP will not be bridged to ethernet'
  ;;
  1) # Enable bridging
  sudo sed -i "s/^#\(bridge=\).*/\1br0/" $HOSTAPDCONF
  echo '[ INFO ] AP will be bridged to ethernet'
  ;;   
  esac
--------------------
 
Untested, as you will understand.



2 SB 3 • 1 PCP 6 • Libratone Loop, Zipp, Zipp Mini • iPeng (iPhone +
iPad) • LMS 7.9 (linux) with plugins: CD Player, WaveInput, Triode's BBC
iPlayer by bpa • IRBlaster by Gwendesign (Felix) • Smart Mix, Music Walk
With Me, What Was That Tune? by Michael Herger • PowerSave by Jason
Holtzapple • Song Info, Song Lyrics by Erland Isaksson • AirPlay Bridge
by philippe_44 • WeatherTime by Martin Rehfeld • Auto Dim Display,
SaverSwitcher, ContextMenu by Peter Watkins.
------------------------------------------------------------------------
epoch1970's Profile: http://forums.slimdevices.com/member.php?userid=16711
View this thread: http://forums.slimdevices.com/showthread.php?t=114369

_______________________________________________
unix mailing list
unix@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to