aboutsummaryrefslogtreecommitdiff
path: root/examples (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* examples: update var_service/README againDenys Vlasenko2016-10-141-0/+54
| | | | | | Added "ps -AH e" example Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixes in docDenys Vlasenko2016-10-141-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples: update var_service/README againDenys Vlasenko2016-10-141-5/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples: update var_service/READMEDenys Vlasenko2016-10-141-24/+130
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples: add example of a DHCP serverDenys Vlasenko2016-10-038-0/+91
| | | | | | | As usual, by multiplying directories - "dhcpd_eth0", "dhcpd_wlan1" you can run many servers on different interfaces. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples: wpa_supplicant.conf has a wrong field deleted in examplesDenys Vlasenko2016-09-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/var_service/supplicant_if: new service exampleDenys Vlasenko2016-09-206-0/+83
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* service/fw example: do not ruin $if[], use different nameDenys Vlasenko2016-07-301-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* var_service/fw: optionally flush all netdevs; optionally prefer one 0/0 routingDenys Vlasenko2016-07-251-12/+36
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples: add a useful "see abridged log" script for ntpd service exampleDenys Vlasenko2016-07-101-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unrpm: clean upMike Frysinger2016-04-041-30/+35
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* undeb: clean upMike Frysinger2016-04-041-34/+40
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* tweak zcip service exampleDenys Vlasenko2015-10-241-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Tweak READMEDenys Vlasenko2015-10-241-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* update network service examplesDenys Vlasenko2015-10-2417-20/+55
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* New example of a service: examples/var_service/zcip_ifDenys Vlasenko2015-10-247-0/+122
| | | | | | Zeroconf for IPv4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* better pinger service exampleDenys Vlasenko2015-10-151-10/+34
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* build system: make CONFIG_EXTRA_LDFLAGS go to LDFLAGS, not EXTRA_LDFLAGSDenys Vlasenko2015-04-141-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* update example ntp.scriptDenys Vlasenko2015-03-311-2/+19
| | | | | | | Handle an interesting corner case when NTP server is reachable... but on a different IP now. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/mdev_fat.conf: document that newer mdev exposes pathDenys Vlasenko2015-02-071-3/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Improve examples/var_service READMEsDenys Vlasenko2014-02-2113-2/+71
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/udhcp: do not rewrite resolv.conf if no DNS servers. Closes 6788Denys Vlasenko2014-01-132-14/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/mdev.conf.change_blockdev.sh: updateDenys Vlasenko2013-04-021-3/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples: add mdev example for Android phoneDenys Vlasenko2013-03-302-0/+54
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/inittab: fix a few incorrect statements about initDenys Vlasenko2013-03-291-7/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: use readlink rather than realpathMike Frysinger2013-03-121-1/+1
| | | | | | | | | The realpath utility requires all paths exist when canonicalizing symlinks. If /etc/resolv.conf points to a tmpfs, then it might not exist initially. Use `readlink -f` so that we follow all symlinks that are available. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* mdev: improve $SEQ handling; improve debug loggingDenys Vlasenko2013-02-271-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sequential run of concurrent mdev's was too simplistic: they waited for /dev/mdev.seq to match. This could sometimes cause cumulative loss of time on the order of a second. Added SIGCHLD signaling from exiting mdev to all other mdev's. Added debugging required to see that code actually works as intended. Example of /dev/mdev.log (with "woken up" elevated from dbg lvl 3 to 2): mdev[1023]: first seq written ^^^^ seq, not pid mdev[1023]: 35.022395 ACTION:add SUBSYSTEM:module DEVNAME:(null) DEVPATH:/module/lib80211 mdev[1023]: rule matched, line -1 ^^^^^^^ means "default rule" mdev[1023]: 35.022676 exiting ^^^^^^^^^ second,usec timestamp mdev[1024]: 35.069691 ACTION:add SUBSYSTEM:vc DEVNAME:vcs9 DEVPATH:/devices/virtual/vc/vcs9 mdev[1024]: dev 7,9 mdev[1025]: 35.069889 waiting for '1024' mdev[1026]: 35.069946 waiting for '1024' mdev[1027]: 35.070151 waiting for '1024' mdev[1024]: rule matched, line -1 mdev[1024]: mknod vcs9 (7,9) 20660 0:0 mdev[1024]: 35.070346 exiting mdev[1025]: woken up mdev[1026]: woken up mdev[1025]: 35.071213 ACTION:add SUBSYSTEM:vc DEVNAME:vcsa9 DEVPATH:/devices/virtual/vc/vcsa9 ^^^^^^^^^ took only a millisecond to start running after prev mdev exited mdev[1025]: dev 7,137 mdev[1027]: woken up mdev[1025]: rule matched, line -1 mdev[1025]: mknod vcsa9 (7,137) 20660 0:0 mdev[1025]: 35.072109 exiting function old new delta mdev_main 849 1372 +523 curtime - 59 +59 dirAction 87 134 +47 static.ts - 8 +8 keywords 19 12 -7 make_device 2189 2119 -70 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: tweak math shell style with the metric varMike Frysinger2013-02-271-1/+2
| | | | | | | | Some shells (like dash) are lame and omit the POSIX increment/decrement feature (because it is listed as optional). Tweak the shell script to work in all POSIX variants. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* udhcpc: support resolv.conf symlinksMike Frysinger2013-02-271-4/+8
| | | | | | | | Often it is desirable to have /etc/ be on read-only storage (well, the whole rootfs) but have things like /etc/resolv.conf be symlinks to a writable location. Tweak the simple script to support that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* mdev: remove undocumented subsystem/devname matching hackDenys Vlasenko2012-05-181-1/+0
| | | | | | | It was colliding with matching of devnames with slashes. We need a more generic way to examine env.vars in rules anyway. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: when found, print major,minor into mdev.logDenys Vlasenko2012-05-182-4/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: add support for $DEVNAME and /dev/mdev.log debug aidDenys Vlasenko2012-05-181-3/+0
| | | | | | | | | | | | | | | function old new delta make_device 1843 2083 +240 mdev_main 712 804 +92 packed_usage 29236 29251 +15 keywords 288 19 -269 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 347/-269) Total: 78 bytes text data bss dec hex filename 887506 497 7584 895587 daa63 busybox_old 887982 497 7584 896063 dac3f busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/mdev_fat.conf: small additionDenys Vlasenko2012-05-161-0/+3
| | | | | | I needed this to make Android's adb see my phone Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: finish support of classless static routesMichael McTernan2011-12-161-2/+4
| | | | | | | | function old new delta udhcp_str2optset 415 532 +117 Signed-off-by: Michael McTernan <Michael.McTernan.2001@cs.bris.ac.uk> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* depmod.pl: output correct dep format according to kernel versionSonic Zhang2011-09-091-1/+1
| | | | | | | | All kernel version except for 2.4 has the same dep output format. (Possibly related to era of kernels 3.0+) Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak comments in android build filesDenys Vlasenko2011-09-091-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* zcip.script: fix $ip environment variableThomas Petazzoni2011-08-091-2/+2
| | | | | | | | The environment variable containing the IP address allocated by zcip is "ip" and not "IP". Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add defconfig files for Android, Cygwin and FreeBSDDaniel Fandrich2011-07-191-0/+31
| | | | | | | | Also added an example script to show how to compile BusyBox against Android's bionic. Signed-off-by: Daniel Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak examples/udhcp/udhcpd.confDenys Vlasenko2011-05-041-7/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: add FEATURE_UDHCP_8021Q optionNigel Hathaway2011-04-261-0/+9
| | | | | | | | | function old new delta dhcp_option_strings 217 237 +20 dhcp_optflags 64 68 +4 Signed-off-by: Nigel Hathaway <Nigel.Hathaway@ubiquisys.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix typo in READMEDenys Vlasenko2010-12-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixDenys Vlasenko2010-12-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* update examples/var_service/READMEDenys Vlasenko2010-12-061-0/+5
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* add examples/var_service/READMEDenys Vlasenko2010-12-061-0/+54
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* depmod.pl: add recursive sanity checkMike Frysinger2010-11-161-0/+3
| | | | | | | | If modules contain circular dependencies, the depmod script will follow the circle forever. So add a simple sanity check to abort rather than chew up the CPU. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: fix unterminated last lines. no code changesDenys Vlasenko2010-07-262-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: trailing empty lines removedDenys Vlasenko2010-07-266-6/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* update examples/udhcp/udhcpd.confDenys Vlasenko2010-04-041-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: tweak udhcpd.conf example and comments. no code changesDenys Vlasenko2010-03-211-19/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>