On 02/19/2017 03:20 PM, A. F. Cano wrote: > > I notice that there is still no option to create an interface of type cdma > (for ppp). Rather than using nmcli like I did the first time, I would like > to set up an additional menu entry and form to enter what minimal data is > needed. That way, the interface will be properly known to plinth and fully > integrated. > > I believe the only options that need to be set explicitely are: > > nmcli con add con-name "ppp" type cdma # set by the connection type menu > entry > nmcli con modify "ppp" connection.zone external # can be set automatically? > nmcli con modify "ppp" cdma.username qnc # qnc can possibly be a default > nmcli con modify "ppp" cdma.password qnc # but should be changeable > > Other options (such as the phone number (#777) have good default values > for the cdma type. > > Can someone point me to either documentation on how to do that or > where the existing forms are so I can use them as examples?
You will want to create a subclass of ConnectionForm in the networks module: https://github.com/freedombox/Plinth/blob/master/plinth/modules/networks/forms.py#L36 There are examples in that file for generic, ethernet, PPPoE, and wifi connection forms. You will also need to update utility functions in this file: https://github.com/freedombox/Plinth/blob/master/plinth/modules/networks/networks.py Those functions do the actual work (of passing configuration to NetworkManager). For more general information, see the developer manual: https://wiki.debian.org/FreedomBox/Manual/Developer > Finally, a few observations: > > Last I heard someone was working on porting shaarli to the current php. > That was the first application I tried and I really miss it. Any idea when > it might be available again? I updated the packaging repository at https://github.com/shaarli/shaarli-pkg-debian. One thing that is missing is a new dependency, which also needs to be packaged: https://github.com/shaarli/netscape-bookmark-parser I guess it won't be in the Stretch release, anyway. -- James
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Freedombox-discuss mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/freedombox-discuss
