- Oct 27, 2014
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 43088
-
- Oct 25, 2014
-
-
Felix Fietkau authored
Based on bug #18206 sysupgrade can lead to loss of password information in certain situations. Most likely all users who will upgrade from versions r43017-43040, will lose their current passwords. :-( https://dev.openwrt.org/ticket/18206 Currently /etc/shadow is defined as a conffile in base-files: https://dev.openwrt.org/browser/trunk/package/base-files/Makefile#L37 But it is not defined in the default list of essential files to keep in sysupgrade: https://dev.openwrt.org/browser/trunk/package/base-files/files/lib/upgrade/keep.d/base-files-essential If exporting conffiles info fails, /etc/shadow can get lost. Shadow passwords are now the default, so saying that preserving /etc/passwd is essential while /etc/shadow is not, makes no sense. The attached patch adds /etc/shadow to the list of essential files. Signed-off-by:
Hannu Nyman <hannu.nyman@iki.fi> SVN-Revision: 43061
-
- Oct 20, 2014
-
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43006
-
John Crispin authored
[base-files] failsafe-mode: print short help on commandline Like mentioned in ticket https://dev.openwrt.org/ticket/11911 this should make the IRC much quieter. Failsafe is somehow special and even experienced users are helpless, because they are not used to this seldom situation. Also: likely you have no internet access in this mode, so you cannot use the wiki. a failsafe-session now looks like this: first we see from 'package/base-files/files/bin/login.sh' the hint: === IMPORTANT ============================ Use 'passwd' to set your login password this will disable telnet and enable SSH ------------------------------------------ after this the /etc/banner ("OpenWrt - wireless freedom") and then the new text: ================= FAILSAFE MODE active ================ special commands: * firstboot reset settings to factory defaults * mount_root mount root-partition with config files after mount_root: * passwd change root's password * /etc/config directory with config files for more help see: http://wiki.openwrt.org/doc/howto/generic.failsafe ======================================================= this supersedes the old patches: http://patchwork.openwrt.org/patch/3337/ http://patchwork.openwrt.org/patch/3553/ Signed-off-by:
Bastian Bittorf <bittorf@bluebottle.com> SVN-Revision: 42985
-
- Oct 19, 2014
-
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42976
-
- Oct 15, 2014
-
-
John Crispin authored
[base-files] default_postinst() fix wrong call of group_add after 12bae65d07d29854204715cebc1ef1eae237fd9b group_add is always called. shell scripting can be tricky... wrong call: [ -n "$gid" ] && group_exists $name || group_add $name $gid this leads to a call of 'group_add' when $gid is emtpy, proof: root@box:~ functionA() { echo A; } root@box:~ functionB() { echo B; } root@box:~ VAR= root@box:~ [ -n "$VAR" ] && functionA || functionB B root@box:~ # functionB was called, but VAR is not filled root@box:~ VAR=filled root@box:~ [ -n "$VAR" ] && functionA || functionB A Signed-off-by:
Bastian Bittorf <bittorf@bluebottle.com> SVN-Revision: 42926
-
- Oct 14, 2014
-
-
John Crispin authored
Inside every LuCI package you need to clear luci-indexcache and sometimes when installing non LuCI pacakges it's also needed to clear it. Easier put it into default_postinst(). Signed-off-by:
Christian Schoenebeck <christian.schoenebeck@gmail.com> SVN-Revision: 42923
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 42919
-
John Crispin authored
[base-files] shell-scripting: fix wrong usage of '==' operator normally the '==' is used for invoking a regex parser and is a bashism. all of the fixes just want to compare a string. the used busybox-ash will silently "ignore" this mistake, but make it portable/clean at least. this patch does not change the behavior/logic of the scripts. Signed-off-by:
Bastian Bittorf <bittorf@bluebottle.com> SVN-Revision: 42911
-
- Oct 09, 2014
-
-
Steven Barth authored
Return all IPv4 and IPv6 addresses. Signed-off-by:
Mathias Kresin <openwrt@kresin.me> SVN-Revision: 42856
-
- Oct 08, 2014
-
-
Steven Barth authored
This allows IPv6 to set up without IPv4 being up thus IPv6-only or IPv6+DS-Lite working with the default config. Signed-off-by:
Steven Barth <steven@midlink.org> SVN-Revision: 42848
-
John Crispin authored
it is now possible to inlie the uid and gid in the syntax USERID:=username=uid:group=gid:group2=gid2:... Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 42838
-
- Oct 06, 2014
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 42800
-
John Crispin authored
Signed-off-by:
Catalin Patulea <catalinp@google.com> SVN-Revision: 42783
-
- Oct 03, 2014
-
-
Steven Barth authored
During boot, a not found message is displayed for systems which do not have uci 'network.globals.ula_prefix' defined in /etc/config/network. The error message itself is not used and can be ignored. Signed-off-by:
Michel Stam <m.stam@fugro.nl> SVN-Revision: 42755
-
- Sep 25, 2014
-
-
Florian Fainelli authored
Add a third argument to ucidef_set_interface_raw, which is specifying the protocol. Signed-off-by:
Florian Fainelli <florian@openwrt.org> SVN-Revision: 42665
-
- Sep 16, 2014
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 42571
-
- Sep 14, 2014
-
-
Luka Perkov authored
Signed-off-by:
Luka Perkov <luka@openwrt.org> SVN-Revision: 42542
-
- Sep 11, 2014
-
-
John Crispin authored
the postinst script enables/starts the init.d scripts upon package installation and installs the users required by the package. the prerm script stops and disables the init.d scripts. Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 42470
-
- Aug 25, 2014
-
-
John Crispin authored
somebody started to set a function returncode in the validation stuff and everybody copies it, e.g. myfunction() { fire_command return $? } a function automatically returns with the last returncode, so we can safely remove the command 'return $?'. reference: http://tldp.org/LDP/abs/html/exit-status.html "The last command executed in the function or script determines the exit status." Signed-off-by:
Bastian Bittorf <bittorf@bluebottle.com> SVN-Revision: 42278
-
- Aug 22, 2014
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 42261
-
- Aug 20, 2014
-
-
Steven Barth authored
SVN-Revision: 42227
-
- Aug 19, 2014
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 42220
-
- Aug 18, 2014
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 42199
-
John Crispin authored
this allows targets to use the new uci-default helper which will generate a file called /etc/board.json. a tool called /bin/config_generate can then be used to generate the default uci settings. Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 42185
-
- Aug 11, 2014
-
-
Jo-Philipp Wich authored
When looking for the first ipaddr also consider the current prefix just like network_get_ipaddrs6 does. If ipv6-address was empty the function did not return the first ipaddr even if the list was non-empty. fixes commit 83e9122f88a002871d5cdf421cf6aa6052b7e006 Signed-off-by:
Henning Schild <henning@hennsch.de> SVN-Revision: 42139
-
- Aug 07, 2014
-
-
Felix Fietkau authored
base-files: enable option to skip the netfilter "filter" table for established connection packets by default Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42048
-
- Jul 29, 2014
-
-
Felix Fietkau authored
Make sure they don't break the sed command, and also make device_info and openwrt_release more robust for parsing by scripts Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41885
-
Felix Fietkau authored
Creates /etc/device_info which will be used to fill in information for WPS and other protocols that need manufacturer/device information This helps with creating OpenWrt firmware for OEM or rebranded devices. Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41884
-
Imre Kaloz authored
Signed-off-by:
Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 41870
-
- Jul 26, 2014
-
-
John Crispin authored
based on http://patchwork.openwrt.org/patch/5969/ Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 41840
-
- Jul 14, 2014
-
-
Gabor Juhos authored
Extracted from http://patchwork.openwrt.org/patch/5716/ Signed-off-by:
Forest Crossman <cyrozap@gmail.com> Signed-off-by:
Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 41639
-
- Jul 13, 2014
-
-
Felix Fietkau authored
base-files: adjust the default netfilter tcp established connection timeout as per RFC 5382 (#17098) Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41599
-
- Jul 10, 2014
-
-
John Crispin authored
If the sysupgrade scripts is called under upgraded, it will not kill all other processes as it should to avoid interference by locked filesystem. This patch checks the parent and if it is upgraded, it kills all. Signed-off-by:
André Valentin <avalentin@marcant.net> SVN-Revision: 41563
-
- Jul 03, 2014
-
-
Felix Fietkau authored
This avoids unnecessary service restarts Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41490
-
- Jul 01, 2014
-
-
John Crispin authored
/lib/{imx6,lantiq,...}.sh are needed in the ramfs for sysupgrade to work. Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 41440
-
- Jun 29, 2014
-
-
Luka Perkov authored
ubox validate_data defines yes/no as valid boolean options, do the same in config_get_bool too. Signed-off-by:
Luka Perkov <luka@openwrt.org> SVN-Revision: 41405
-
- Jun 27, 2014
-
-
John Crispin authored
Signed-off-by:
Luka Perkov <luka@openwrt.org> SVN-Revision: 41354
-
- Jun 26, 2014
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 41344
-
- Jun 24, 2014
-
-
Luka Perkov authored
Signed-off-by:
Luka Perkov <luka@openwrt.org> SVN-Revision: 41334
-