- May 19, 2015
-
-
Jonas Gorski authored
Instead of stripping everything after the first dot, strip everything after the last dot. This fixes pre-/postrm actions for packages with a dot in their name, like libusb-1.0. Fixes #19668. Signed-off-by:
Jonas Gorski <jogo@openwrt.org> SVN-Revision: 45702
-
- Apr 10, 2015
-
-
John Crispin authored
Fixes ticket #19352. Signed-off-by:
Yousong Zhou <yszhou4tech@gmail.com> Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 45367
-
- Feb 04, 2015
-
-
John Crispin authored
The name variable contains at first the package name, and after the last group name. This patch fixes /etc/rc.d symlink creation (at least). Change name in pkgname, change the other name in ugname (user group name), and id in ugid (user group id) Signed-off-by:
Etienne CHAMPETIER <champetier.etienne@gmail.com> SVN-Revision: 44253
-
- Dec 01, 2014
-
-
John Crispin authored
create user:group before running postinst-pkg. the postinst hook might require the user:group to already exist. Signed-off-by:
Christian Schoenebeck <christian.schoenebeck@gmail.com> SVN-Revision: 43472
-
- 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
-
- Oct 08, 2014
-
-
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
-
- Sep 16, 2014
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 42571
-
- 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
-
- 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
-
- Apr 08, 2014
-
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40426
-
- Apr 07, 2014
-
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40412
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40411
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40410
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40409
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40408
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40406
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40405
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40404
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40403
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40402
-
Felix Fietkau authored
Signed-off-by:
Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40401
-
- Dec 27, 2013
-
-
John Crispin authored
Signed-off-by:
Toke Høiland-Jørgensen <toke@toke.dk> SVN-Revision: 39169
-
- Nov 25, 2013
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 38909
-
- Nov 14, 2013
-
-
Gabor Juhos authored
In commit r38690, the MAC address canonicalization has been converted to use 'tr' instead of 'printf'. This only works if with MAC addresses which uses the 'xx:xx:xx:xx:xx:xx' format. However on some boards, the MAC addresses are stored in different format in the mtd partition. Some vendors are using hyphens or dots as separators instead of colons. Also the leading zeroes may be missing from the individual octets or those are replaced with spaces. Add a new function which can be used to convert these into the 'xx:xx:xx:xx:xx:xx' format. Also update the 'mtd_get_mac_ascii' function to use the new helper. The helper function is based on this code: http://isquared.nl/blog/2010/08/11/Bash-function-to-canonicalize-MAC-addresses/ Signed-off-by:
Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38803
-
- Nov 08, 2013
-
-
Gabor Juhos authored
The mtd_get_mac_ascii utility function was broken. This fixes it. - Remove the superfluous include of /lib/functions.sh. The function is already in that file so it is pointless, - only use a variable if the whole key word matches, - don't try to process the MAC address if it is empty, - use 'tr' to canonicalize the MAC address, Signed-off-by:
Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> [juhosg: add more fixes, update commit message] Signed-off-by:
Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38690
-
- Jul 20, 2013
-
-
Gabor Juhos authored
Signed-off-by:
Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37475
-
- Jun 22, 2013
-
-
John Crispin authored
the procd changes broke the postinst insmod. Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 37015
-
- Jun 21, 2013
-
-
John Crispin authored
Signed-off-by:
John Crispin <blogic@openwrt.org> SVN-Revision: 37003
-
- Feb 17, 2013
-
-
Gabor Juhos authored
- update copyright header - remove superfluous shebang left-over from changeset 34794 - unify function declaration [juhosg: keep Vertical Communications' copyright notice] Signed-off-by:
Michael Heimpold <mhei@heimpold.de> Signed-off-by:
Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35646
-
- Feb 16, 2013
-
-
Gabor Juhos authored
Signed-off-by:
Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35614
-
Gabor Juhos authored
Signed-off-by:
Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 35612
-
- Dec 27, 2012
-
-
Steven Barth authored
SVN-Revision: 34893
-
- Dec 19, 2012
-
-
Mirko Vogt authored
SVN-Revision: 34794
-
Mirko Vogt authored
The behaviour of calling 'mount' differed depending on whether it called the busybox-mount, the mount of util-linux, the mount defined in /lib/functions.sh and /lib/functions/boot.sh /etc/preinit even included /lib/functions.sh and /lib/functions/boot.sh, both re-defining 'mount'. SVN-Revision: 34792
-
- Dec 12, 2012
-
-
Gabor Juhos authored
Signed-off-by:
Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34648
-
Mirko Vogt authored
Reverting commit 34641. Function find_mtd_part() is needed by some scripts deployed for certain targets but not including boot.sh after all. Still, all this certainly needs some love. SVN-Revision: 34642
-
Mirko Vogt authored
Since all scripts using this function include /lib/functions/boot.sh - where this function is defined as well - it can be dropped from /lib/functions.sh. Also avoids further confusion about this function being declared and defined in two different places. SVN-Revision: 34641
-