summaryrefslogtreecommitdiffstats
path: root/package/base-files
Commit message (Collapse)AuthorAgeFilesLines
* base-files: split service related functions off to /lib/functions/service.shnbd2012-03-203-129/+131
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31042 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Add munin to /etc/servicesjow2012-03-181-0/+1
| | | | | | | | | | | | The muninlite postinst fails to add munin to /etc/services. This patch removes this broken postinst and add an entry for munin in /etc/services. This should have been done when the rest of the /etc/services postinsts were being removed (changesets 26142-26149). Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30982 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: remove old coldplugging hacks that are no longer necessary since ↵nbd2012-03-131-10/+0
| | | | | | the new main hotplug2 instance calls udevtrigger as well git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30916 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: enable conntrack accounting in sysctl. It used to be a ↵jow2012-03-042-1/+2
| | | | | | compile time option which got deprecated git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30805 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: remove trailing whitespaces from lib/functions/boot.shjuhosg2012-03-021-4/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30776 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: remove trailing whitespaces from lib/functions.shjuhosg2012-03-021-10/+10
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30775 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: add a uci-defaults script which will migrate the root ↵jow2012-01-222-1/+13
| | | | | | password to /etc/shadow if needed git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29865 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: the initial hotplug2 instance sometimes misses a few relevant ↵nbd2012-01-221-0/+1
| | | | | | events, e.g. during module load. rerun udevtrigger for the final hotplug2 instance to fix this git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29862 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: do not pass --set-worker /lib/hotplug2/worker_fork.so ↵jow2012-01-192-2/+1
| | | | | | to hotplug2 anymore, its statically linked - patch by Viktar Palstsiuk <viktar.palstsiuk@promwad.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29806 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: implement a --force option for sysupgrade to override ↵jow2012-01-082-4/+13
| | | | | | image checks, useful to upgrade old ar71xx installations to current trunk ones git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29688 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: add support for the switch LED triggerjuhosg2011-12-312-1/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29629 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: use case statement in led init scriptjuhosg2011-12-311-15/+27
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29628 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: add -b (--create-backup) option to sysupgrade, which ↵jow2011-12-202-3/+27
| | | | | | generates a backup .tar.gz according to the user settings. This will also be reused by LuCI. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29587 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: add lib/functions/uci-defaults.shjuhosg2011-12-011-0/+88
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29384 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: kill remaining processes after running user hooks (#10461)jow2011-11-192-3/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29256 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: another empty password check fix (#10440)jow2011-11-172-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29208 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: now that we have date -k, adjust the kernel timezone ↵jow2011-11-172-2/+5
| | | | | | after setting up TZ and localtime git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29204 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: rewrite killing of nonessential services to not rely ↵jow2011-11-162-10/+18
| | | | | | on top, use the proc filesystem only git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29187 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: prime root password with "x" to notify programs that ↵jow2011-11-143-3/+6
| | | | | | | | | there is a shadow record, fix /bin/login.sh password detection accordingly. Solves broken key based dropbear login with empty password after r28935. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29130 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: enhance service functionsnico2011-11-121-13/+27
| | | | | | | | * allow matching process by name (useful for processes changing it) * check if first argument is executable * fix function name used in error messages git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28991 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: now that the initial password is completely empty (and ↵jow2011-11-112-3/+3
| | | | | | not primed with "!") adjust login.sh for it to make telnetd available again git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28943 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [base-files]: nuke another 2.4 skeletonkaloz2011-11-101-1/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28937 3c298f89-4303-0410-b956-a3cf2f4a3e73
* enable and use shadow passwords by defaultkaloz2011-11-101-5/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28936 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [base-files]: the empty root password should be empty ;)kaloz2011-11-101-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28935 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files, target: assign name to system timeserver section, makes it ↵jow2011-11-101-1/+1
| | | | | | easier to set servers on the cli git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28933 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: /lib/functions.sh: add {group,user}_{add,exists} functionsnico2011-11-091-0/+37
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28871 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: /lib/functions.sh: let service_stop exit early if no ↵nico2011-11-081-1/+1
| | | | | | matching process to stop where found git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28870 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: enhance & cleanup service wrappersnico2011-11-082-27/+41
| | | | | | | | | * add service_check function for checking if a process is alive * add service_signal for sending arbitrary signals to a process * change service_stop to send a TERM signal first, wait for the process to die and send a KILL signal if it doen't * have service_kill print a warning on STDERR stating it has been deprecated git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28865 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: move service* functions from /etc/rc.common to ↵nico2011-11-082-82/+82
| | | | | | /lib/functions.sh git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28864 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: do not kill udhcpc on sysupgrade, it will tear down ↵jow2011-11-081-1/+1
| | | | | | the interface if terminated git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28863 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: do not assume that "top" is busybox' top, but try to ↵jow2011-11-082-2/+2
| | | | | | call the applet explicitely git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28862 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: properly handle wifi ifaces with no network attached, ↵jow2011-11-082-4/+6
| | | | | | useful for unmanaged interfaces like used for batman or monitoring git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28860 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: move /etc/functions.sh to /lib/functions.shnico2011-11-083-321/+322
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28857 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: use new service wrappernico2011-11-074-24/+26
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28835 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: /etc/rc.common: add service wrapper around start-stop-daemonnico2011-11-071-1/+83
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28834 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: /etc/passwd: fix uid number for user 'daemon' ↵nico2011-11-071-1/+1
| | | | | | (conflicting with user 'nobody') git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28799 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: process platform hotplug calls in the early launch of hotplug2 ↵nbd2011-11-051-0/+4
| | | | | | to avoid having crda calls get stuck at boot time (fixes #10350, #10354) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28768 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: ensure that a bridge gets created before hostapd needs it, hostapd ↵nbd2011-11-041-0/+1
| | | | | | must not attempt to create the bridge by itself git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28745 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: load modules early, run wifi detect afterwards and only then ↵nbd2011-11-031-6/+12
| | | | | | | | process uci defaults this allows uci-defaults scripts to override wifi settings git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28733 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: add some more protected services to sysupgrade kill ↵jow2011-11-032-2/+2
| | | | | | blacklist git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28732 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: fix typojow2011-10-301-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28681 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: sysupgrade: kill all but essential processes before ↵jow2011-10-273-1/+30
| | | | | | starting the update git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28626 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files/sysupgrade: add more busybox applet symlinks to ramdiskjuhosg2011-10-272-2/+7
| | | | | | | | | Adds symlinks for printf and wc to make life happier in the sysupgrade ramdisk. Also make code more readable by escaping that overly long line. Signed-off-by: Daniel Golle <dgolle@allnet.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28616 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: remove rdate integration, add busybox ntpd init script ↵jow2011-10-275-81/+41
| | | | | | | | | | | | | | | | and server list in /etc/config/system The rdate applet proved to be too unreliable to obtain the current time on boot: - public time servers are rare and often unreachable or overloaded - rdate does not daemonize, it needs a network connection the moment it is started, leading to race conditions - the /etc/config/timeserver configuration is overly complex and there is no reliable way to disable rdate invocations - the time protocol as specified in RFC 868 is considered obsolete This commit adds an init script /etc/init.d/sysntpd which starts and stops the busybox ntpd accordingly. The builtin ntpd can be disabled by either disabling the init script, removing the symlink to busybox or by clearing the timeserver list in /etc/config/system. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28612 3c298f89-4303-0410-b956-a3cf2f4a3e73
* add an initial (experimental) version of netifd, disabled by defaultnbd2011-10-211-1/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28499 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: move network related scripts to a separate package to make the ↵nbd2011-10-209-979/+1
| | | | | | transition to netifd easier git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28495 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: introduce "igmp_snooping" option to toggle IGMP ↵jow2011-10-112-2/+4
| | | | | | snooping on bridge interfaces git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28412 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: use "zonename" system option to symlink /etc/localtime ↵jow2011-09-262-1/+6
| | | | | | via /tmp/localtime to /usr/share/zoneinfo for glibc and eglibc git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28306 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: apply network interface settings such as macaddr, mtu and ↵nbd2011-09-241-15/+9
| | | | | | txqueuelen in prepare_interface instead of setup_interface. setting the mtu after the interface is up is unreliable on some drivers such as gianfar git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28297 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: make ip matching in dns add/remove functions more ↵jow2011-09-232-3/+3
| | | | | | explicit, avoids overmatching pairs like 1.2.3.35 and 1.2.3.3 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28291 3c298f89-4303-0410-b956-a3cf2f4a3e73