- Mar 22, 2017
-
-
Felix Fietkau authored
This will be used to replace all those nasty board specific scripts that do basically the same thing Signed-off-by:
Felix Fietkau <nbd@nbd.name>
-
- Dec 20, 2016
-
-
Rafał Miłecki authored
This adds support for install-overlay define. When used in package it allows installing files to a special directory that gets copied to the root when installing it. It allows overwriting files provided by other packages. Signed-off-by:
Rafał Miłecki <rafal@milecki.pl>
-
- Nov 21, 2016
-
-
Jonas Gorski authored
Packages that do a killall <cmd> with the same name as the init script will fail the prerm step when the service isn't running. Do make them removable without having to restart the service, ignore the return code. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com> Acked-by:
Jo-Philipp Wich <jo@mein.io>
-
Jonas Gorski authored
Properly stop/start services on upgrade, but don't change the enabled state. Signed-off-by:
Jonas Gorski <jonas.gorski@gmail.com> Acked-by:
Jo-Philipp Wich <jo@mein.io>
-
- Sep 26, 2016
-
-
Matthias Schiffer authored
IPKG_INSTROOT must be respected for offline removal (used for per-device rootfs). Signed-off-by:
Matthias Schiffer <mschiffer@universe-factory.net>
-
- May 27, 2016
-
-
Jo-Philipp Wich authored
Some package postinstall operations, e.g. those emitted by the LuCI build system, source and delete the uci-defaults themselves upon package insteall, causing the generic defaults apply code to trigger shell errors like: .../luci-app-ddns.postinst: .: line 130: can't open './40_luci-ddns' Rework the generic apply code to check the existence of the uci-defaults script before trying to source it, use sed to prefilter the list of entries from the control file and perform the directory change in a subshell, avoiding the need for cd $OLDPWD. Signed-off-by:
Jo-Philipp Wich <jo@mein.io>
-
- May 04, 2016
-
-
Daniel Golle authored
Packages may install scripts into /etc/uci-defaults to be executed once after installation, usually at the first boot of the target. This works fine if the package was installed to the rootfs during build or using the ImageBuilder. If the package is installed using opkg during run-time uci-defaults were applied only after a reboot of the device. Avoid the need to reboot by evaluting the package's uci-defaults in default-postinst. Signed-off-by:
Daniel Golle <daniel@makrotopia.org>
-
- Apr 29, 2016
-
-
John Crispin authored
Signed-off-by:
John Crispin <john@phrozen.org>
-
- Sep 16, 2015
-
-
Jo-Philipp Wich authored
- Simplify user spec parsing code - Alias IPKG_INSTROOT to shorten code - Quote variables where appropriate - Remove a useless-use-of-cat instance - Suppress errors in case control or list files are missing Signed-off-by:
Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 46975
-
- Aug 17, 2015
-
-
John Crispin authored
Using the postinst script for sanity checks and expecting opkg to fail if the postinst didn't return 0 was possible in Barrier Breaker, propagate the real postinst return code through default_postinst to restore this behaviour. Signed-off-by:
Matthias Schiffer <mschiffer@universe-factory.net> SVN-Revision: 46653
-
- 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
-