OpenWrt Forum Archive

Topic: Expermental Patch: TimeZone and User Configuation

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,

Firstly I would like to thank all of the people that have contributed to this project,  It is a wonderful tool.

I have written a couple of patches for my own needs and want to given them back to everyone.  I am not sure of the contribution methods used for the project so I throw this out and let people tell me what I have done wrong.

The patches provide three pieces of functionality.  They are grouped into one patch and included below.  The functionality patches is as follows:

1.) Timezone support:  Gives the ability to define a timezone to the initial firmware build and configure that timezone from the menu configuration.  (It appears in the Runtime Configuration Menu)

2.) Inital User Support:  Allows an initial root user and an additional user to be defined in the configuration menus to be included in the firmware.  This ensures that even in failsafe mode, no un-authenticated access to the router even via the serial port.  This option is again available on the Runtime Configuration menu of the build menus.  It is disabled by default

3.) Copy /etc tree:  This copies the /etc instead of using symlinks back to the rom.  It only applies to the squashfs-based firmware versions.  Useful for making user support work out of the box and other customiztions to the /etc tree.

-----------------
Edit #1: Added /etc copy and updated patch

Nice features.

The discussion might have continued from here.