Hi All, I am pretty new to LEAF and Bering in particular and I'd have to say "Congrats to you all for such great work !".
I'm trying to develop a simple web form to configure the Bering interfaces (i.e. /etc/network/interfaces) file. Unfortunately I'm not (yet) an expert at "shell scripting" - especially string handling. Has anyone developed a simple script that will write a new file /etc/network/interfaces file from the contents of a simple form? Let's just start with a "static" interface for now...I'd like to rewrite the interface file based on just the following form data: IP Address: Mask Length: Broadcast Address: Now the "auto iface <if_name>" and the "iface <if_name> inet <static, dhcp, ppp>" can be left untouched (for now), so all I need to change is whatever follows the "address", "masklen", and "broadcast" keywords - if the if_type is set to "inet static". I'll soon have a form that will allow you to select the interface type and will need to implement this for all types of interfaces. But for now, to keep things simple, I just wanted to attempt changing of a static interface ! Is this very difficult to do? Does this make sense? Any help would be very, very much appreciated! Thanks all...Steve ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ leaf-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-devel