RADIUSdesk

logo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
technical:ppp-openwrt-compile [2023/11/20 11:48]
admin [Getting the code]
technical:ppp-openwrt-compile [2023/12/28 14:18] (current)
admin [Getting the code]
Line 4: Line 4:
   * We assume you have already checked out the OpenWrt SDK.   * We assume you have already checked out the OpenWrt SDK.
   * You can find more details here: https://www.radiusdesk.com/wiki/technical/openwrt-prep.   * You can find more details here: https://www.radiusdesk.com/wiki/technical/openwrt-prep.
 +  * Make sure you include install the packages needed for Accel-ppp.
 +<code bash>
 +#Do this under the openwrt directory 
 +cd openwrt
 +./scripts/feeds install libpcre 
 +./scripts/feeds install libopenssl 
 +./scripts/feeds install libpthread 
 +./scripts/feeds install librt 
 +./scripts/feeds install libatomic 
 +./scripts/feeds install libucontext 
 +./scripts/feeds install kmod-sched-core 
 +./scripts/feeds install kmod-pptp 
 +./scripts/feeds install kmod-pppoe 
 +./scripts/feeds install kmod-ppp
 +</code>
   * The Accel-ppp package is part of the MESHdesk code:   * The Accel-ppp package is part of the MESHdesk code:
 <code bash> <code bash>
Line 19: Line 34:
   * You can select it and run **make** to build the firmware.   * You can select it and run **make** to build the firmware.
 {{:technical:pppoe:openwrt_select_accel.png?nolink|}} {{:technical:pppoe:openwrt_select_accel.png?nolink|}}
 +
 +===== Ensuring smooth startup =====
 +  * When we include Accel-ppp along with the MESHdesk package we do an initial prep before calling the start-up script.
 +  * See the code below as reference
 +<code lua>
 +function rdAccel.__prepAccel(self)
 +   os.execute('/etc/init.d/accel-ppp disable');
 +   os.execute('mkdir /var/log/accel-ppp');
 +   os.execute('ln -s /usr/lib/accel-ppp/libconnlimit.so /usr/lib');
 +   os.execute('ln -s /usr/lib/accel-ppp/libvlan-mon.so  /usr/lib');
 +   os.execute('ln -s /usr/lib/accel-ppp/libradius.so   /usr/lib');
 +end
 +</code>
 +