aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* [package] base-files: kill remaining processes after running user hooks (#10461)Jo-Philipp Wich2011-11-191-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29256 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: another empty password check fix (#10440)Jo-Philipp Wich2011-11-171-1/+1
| | | | 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 ↵Jo-Philipp Wich2011-11-171-1/+1
| | | | | | 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 ↵Jo-Philipp Wich2011-11-161-1/+1
| | | | | | 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 ↵Jo-Philipp Wich2011-11-141-1/+1
| | | | | | | | | 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: now that the initial password is completely empty (and ↵Jo-Philipp Wich2011-11-111-1/+1
| | | | | | 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
* enable and use shadow passwords by defaultImre Kaloz2011-11-101-5/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28936 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: enhance & cleanup service wrappersNicolas Thill2011-11-081-1/+1
| | | | | | | | | * 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: do not assume that "top" is busybox' top, but try to ↵Jo-Philipp Wich2011-11-081-1/+1
| | | | | | 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, ↵Jo-Philipp Wich2011-11-081-1/+1
| | | | | | 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.shNicolas Thill2011-11-081-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28857 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package/base-files: use new service wrapperNicolas Thill2011-11-071-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28835 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: add some more protected services to sysupgrade kill ↵Jo-Philipp Wich2011-11-031-1/+1
| | | | | | blacklist git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28732 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: sysupgrade: kill all but essential processes before ↵Jo-Philipp Wich2011-10-271-1/+1
| | | | | | 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 ramdiskGabor Juhos2011-10-271-1/+1
| | | | | | | | | 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 ↵Jo-Philipp Wich2011-10-271-1/+1
| | | | | | | | | | | | | | | | 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 defaultFelix Fietkau2011-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 ↵Felix Fietkau2011-10-201-0/+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 ↵Jo-Philipp Wich2011-10-111-1/+1
| | | | | | 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 ↵Jo-Philipp Wich2011-09-261-1/+3
| | | | | | 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
* [package] base-files: make ip matching in dns add/remove functions more ↵Jo-Philipp Wich2011-09-231-1/+1
| | | | | | 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
* [package] base-files: fix arp() procedure to properly detect /usr/bin/arpJo-Philipp Wich2011-08-121-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27965 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: use "reboot -f" after sysupgrade to prevent executing ↵Jo-Philipp Wich2011-07-251-1/+1
| | | | | | deleted init scripts git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27776 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: attempt bring up related wifi devices when calling ifupJo-Philipp Wich2011-07-221-1/+1
| | | | | | | | | | | | | | | | | | | | | If a user invoked /sbin/ifup to bring up an interface, the setup used to fail in case of wireless networks tied to a non-bridged interface definition. Likewise, the bringup of "lan" in the default configuration will reinitialize the bridge but do not re-join the wireless network to it, requiring an extra call to /sbin/wifi (which might not be possible anymore due to a severed link if connected wirelessly). The changeset modifies the "ifup" command to search for related wireless devices and call "wifi up" on them if applicable. This way the commands for wireless and non-wireless interfaces are unified from a cli point of view. The "ifup -a" case has not been changed to keep the logic of the /etc/init.d/network boot sequence. This might be changed later. Solves #9763. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27720 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: implement a generic mechanism to map per-interface ↵Jo-Philipp Wich2011-07-171-1/+1
| | | | | | | | | | | | sysctls to uci. - option ipv4_xyz is mapped to /proc/sys/net/ipv4/{conf,neigh}/xyz - option ipv6_xyz is mapped to /proc/sys/net/ipv6/{conf,neigh}/xyz This allows e.g. "option ipv6_proxy_ndp 1" to enable NDP proxying on wan. Fixes ticket #8699. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27653 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: add -h and --help options to sysupgrade (#9728)Jo-Philipp Wich2011-07-171-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27630 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: use uci_toggle_state() to prevent unwanted aggregation ↵Jo-Philipp Wich2011-07-151-1/+1
| | | | | | of state vars (#9711) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27616 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: do not use the relinked libgcc, fixes c++ exception handling ↵Felix Fietkau2011-07-021-1/+1
| | | | | | issues (#9185) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27347 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [toolchain] add gfortran compiler support (#9600, patch from Xiangfu Liu via ↵Jo-Philipp Wich2011-06-231-0/+40
| | | | | | Qi hardware) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27262 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: if an ip6addr without a prefix is given, assume /128 - ↵Jo-Philipp Wich2011-06-091-1/+1
| | | | | | otherwise the busybox utilities will interpret it as /0 and create an invalid default route git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27145 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: fix error reporting for unsupported protocols on ↵Jo-Philipp Wich2011-06-071-1/+1
| | | | | | virtual interfaces git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27132 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: mark /etc/crontabs/ as config directoryJo-Philipp Wich2011-05-241-1/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26986 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [PATCH] ipcalc.sh CIDR notationJo-Philipp Wich2011-05-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hi, the attached patch makes ipcalc.sh accept IP/Netmask combinations in CIDR notation. Before you could only do: # sh ipcalc.sh 192.168.0.0 255.255.255.0 1 10 IP=192.168.0.0 NETMASK=255.255.255.0 BROADCAST=192.168.0.255 NETWORK=192.168.0.0 PREFIX=24 START=192.168.0.1 END=192.168.0.11 with this patch you can also execute it with: sh ipcalc.sh 192.168.0.0/24 1 10 IP=192.168.0.0 NETMASK=255.255.255.0 BROADCAST=192.168.0.255 NETWORK=192.168.0.0 PREFIX=24 START=192.168.0.1 END=192.168.0.11 The patch is based on #1260 [1], i just changed one line to calculate the START end END ips right. I wonder why that never got included. If there is no reason not to do i would like to ask you to commit that patch, because its a functionality i (and probably others) miss quite often. Btw, i also fixed 4 useless tabs, that might look a bit strange in the patch. Regards, Manuel git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26930 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: retrigger usb coldplug after module loading, solves ↵Jo-Philipp Wich2011-05-081-1/+1
| | | | | | usb_modeswitch on boot and possibly others (#9352) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26848 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: fix stale space in eglibc library install section (#9270)Jo-Philipp Wich2011-04-191-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26720 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: return success on lib-copying with external toolchainJo-Philipp Wich2011-04-121-12/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | when using an external toolchain the base-files package copies libc, libgcc and others from the library directory. The file list is given as following in the .config: CONFIG_LIBC_FILE_SPEC="./lib/ld{-*.so,-linux*.so.*} ./lib/lib{anl,c,cidn,crypt,dl,m,nsl,nss_dns,nss_files,resolv,util}{-*.so,.so.*}" Because the filenames are composed with different endings, not all files exist and will be skipped. Currently, this works only if the last composed file (util.so.*) really exists. At the moment this works - but only if you don't add a new file like 'uClibc'. Adding it at the end '...resolv,util,uClibc}{-*.so,.so.*}' will lead to this message, because the combination 'libuClibc.so.*' doesn't exist and Make will evaluate the last copy statement of the for loop. --- Message Snippet --- cp: cannot stat `/home/user/Desktop/code/meetwise/toolchain/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9.32_eabi/./lib/libnss_files.so.*': No such file or directory cp: cannot stat `/home/user/Desktop/code/meetwise/toolchain/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9.32_eabi/./lib/libresolv-*.so': No such file or directory cp: cannot stat `/home/user/Desktop/code/meetwise/toolchain/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9.32_eabi/./lib/libresolv.so.*': No such file or directory cp: cannot stat `/home/user/Desktop/code/meetwise/toolchain/staging_dir/toolchain-arm_v5te_gcc-linaro_uClibc-0.9.32_eabi/./lib/libuClibc.so.*': No such file or directory make[2]: *** [/home/user/Desktop/code/meetwise/openwrt/bin/at91/packages/libc_-68_at91.ipk] Error 1 make[2]: Leaving directory `/home/user/Desktop/code/meetwise/openwrt/package/base-files' make[1]: *** [package/base-files/compile] Error 2 make[1]: Leaving directory `/home/user/Desktop/code/meetwise/openwrt' make: *** [package/base-files/compile] Error 2 --- /Message Snippet/ --- To fix this unwanted behaviour I added an extra 'exit 0' to each for-loop and make ignores non-existing files as before. Signed-off-by: Sven Bachmann <dev@mcbachmann.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26623 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: properly handle vlans on top of wireless interfacesJo-Philipp Wich2011-03-181-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26230 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: update sysctl.conf for modern kernelsJo-Philipp Wich2011-03-171-2/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26204 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: link libpthread against libcFelix Fietkau2011-03-141-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26161 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: make library relinking uclibc specific and fix libpthread ↵Felix Fietkau2011-03-101-2/+5
| | | | | | installation for the non-relinked variant git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26003 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: only relink libraries if the linaro toolchain is selectedFelix Fietkau2011-03-091-1/+3
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25983 3c298f89-4303-0410-b956-a3cf2f4a3e73
* gcc: move the optimized assembler helpers back into the static libgcc and ↵Felix Fietkau2011-03-081-6/+21
| | | | | | skip relinking for this arch. due to relocation constraints, the assembler functions cannot be in the shared libgcc and must always be linked in statically git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25952 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: the relinked libpthread needs to be linked against libdl, ↵Felix Fietkau2011-03-081-1/+1
| | | | | | otherwise calls to dlopen() fail (fixes #8978) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25950 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: fix Build/Compile override handling, fixes ar7 compileFelix Fietkau2011-03-061-5/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25911 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: do not build or use libgcc on m68k and avr32Felix Fietkau2011-03-031-7/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25852 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: relink uclibc and libgcc libraries to remove leftovers of the ↵Felix Fietkau2011-03-011-5/+59
| | | | | | | | | statically linked initial libgcc saves a few kb and gets rid of unused not exported functions as well should also improve the reliability of mklibs git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25800 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files: Add /etc/nsswitch.conf to targets running ↵Hamish Guthrie2011-02-181-0/+1
| | | | | | glibc/eglibc, otherwise name resolution fails git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25568 3c298f89-4303-0410-b956-a3cf2f4a3e73
* base-files: librt should depend on libpthread, not the other way aroundFelix Fietkau2011-02-161-1/+1
| | | | | | | | | In uClibc 0.9.32 as well as recent versions of glibc and eglibc, librt depends on libpthread. Signed-off-by: Mark Mentovai <mark@moxienet.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25548 3c298f89-4303-0410-b956-a3cf2f4a3e73
* remove the shared object stubs of libnsl and libresolv - let the compiler ↵Felix Fietkau2011-02-131-1/+1
| | | | | | use the static variants instead git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25511 3c298f89-4303-0410-b956-a3cf2f4a3e73
* [package] base-files:Jo-Philipp Wich2011-02-111-1/+1
| | | | | | | | | - properly disable IPv6 on bridge ports - introduce accept_ra option, defaults to true for dhcp interfaces, false for others - introduce send_rs option, defaults to true for static interfaces, false for others git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25454 3c298f89-4303-0410-b956-a3cf2f4a3e73