aboutsummaryrefslogtreecommitdiff
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
...
* tweak zcip service exampleGravatar Denys Vlasenko2015-10-241-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Tweak READMEGravatar Denys Vlasenko2015-10-241-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* update network service examplesGravatar Denys Vlasenko2015-10-2417-20/+55
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* New example of a service: examples/var_service/zcip_ifGravatar Denys Vlasenko2015-10-247-0/+122
| | | | | | Zeroconf for IPv4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* better pinger service exampleGravatar Denys 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_LDFLAGSGravatar Denys Vlasenko2015-04-141-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* update example ntp.scriptGravatar Denys 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 pathGravatar Denys Vlasenko2015-02-071-3/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Improve examples/var_service READMEsGravatar Denys 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 6788Gravatar Denys Vlasenko2014-01-132-14/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/mdev.conf.change_blockdev.sh: updateGravatar Denys Vlasenko2013-04-021-3/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples: add mdev example for Android phoneGravatar Denys Vlasenko2013-03-302-0/+54
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples/inittab: fix a few incorrect statements about initGravatar Denys Vlasenko2013-03-291-7/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: use readlink rather than realpathGravatar Mike 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 loggingGravatar Denys 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 varGravatar Mike 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 symlinksGravatar Mike 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 hackGravatar Denys 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.logGravatar Denys Vlasenko2012-05-182-4/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: add support for $DEVNAME and /dev/mdev.log debug aidGravatar Denys 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 additionGravatar Denys 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 routesGravatar Michael 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 versionGravatar Sonic 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 filesGravatar Denys Vlasenko2011-09-091-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* zcip.script: fix $ip environment variableGravatar Thomas 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 FreeBSDGravatar Daniel 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.confGravatar Denys Vlasenko2011-05-041-7/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: add FEATURE_UDHCP_8021Q optionGravatar Nigel 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 READMEGravatar Denys Vlasenko2010-12-081-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* typo fixGravatar Denys Vlasenko2010-12-061-1/+1
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* update examples/var_service/READMEGravatar Denys Vlasenko2010-12-061-0/+5
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* add examples/var_service/READMEGravatar Denys Vlasenko2010-12-061-0/+54
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* depmod.pl: add recursive sanity checkGravatar Mike 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 regularGravatar Denys 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 changesGravatar Denys Vlasenko2010-07-262-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: trailing empty lines removedGravatar Denys Vlasenko2010-07-266-6/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* update examples/udhcp/udhcpd.confGravatar Denys Vlasenko2010-04-041-0/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: tweak udhcpd.conf example and comments. no code changesGravatar Denys Vlasenko2010-03-211-19/+22
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: code shrink; disable time and log server optionsGravatar Denys Vlasenko2010-03-211-6/+7
| | | | | | | | | | | | | | | | | | | function old new delta add_server_options - 100 +100 udhcp_add_simple_option 92 90 -2 nobody_responds_to_arp 88 85 -3 dhcp_options 66 62 -4 udhcp_add_option_string 104 94 -10 udhcp_run_script 665 654 -11 dhcp_option_strings 203 188 -15 static.blank_chaddr 16 - -16 send_ACK 211 180 -31 add_bootp_options 61 - -61 udhcpd_main 1925 1846 -79 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 0/8 up/down: 100/-232) Total: -132 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpc: make it possible to disable vendor id; improve help textGravatar Denys Vlasenko2010-03-201-11/+11
| | | | | | | | | | | | function old new delta init_packet 135 139 +4 packed_usage 26789 26786 -3 alloc_dhcp_option 67 63 -4 udhcpc_main 2467 2447 -20 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 4/-27) Total: -23 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcpd: remove five more options which do not make sense or not supportedGravatar Denys Vlasenko2010-03-201-21/+29
| | | | | | | | | | | | | | | | requestip, vendorclass, clientid are client-side variables, they do not make sense as udhcpd opts dhcptype is the packet type (not interesting, it's always 5) userclass needs parser support in order to work function old new delta dhcp_options 68 66 -2 read_opt 865 859 -6 dhcp_option_strings 253 203 -50 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-58) Total: -58 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* udhcp: remove support for some really old and odd optionsGravatar Denys Vlasenko2010-03-191-8/+8
| | | | | | | | function old new delta dhcp_options 72 68 -4 dhcp_option_strings 271 253 -18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixGravatar Denys Vlasenko2010-01-261-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: explain why scripts can be run in quick successionGravatar Denys Vlasenko2010-01-251-6/+14
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixesGravatar Denys Vlasenko2010-01-251-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix examples which used non-standard cut -b0-NNNGravatar Denys Vlasenko2010-01-187-7/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* examples: add example ntpd serviceGravatar Denys Vlasenko2010-01-135-0/+118
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ntpd: make it work w/o -g too :(Gravatar Denys Vlasenko2009-12-011-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev_fat.conf: add a rule to run nameifGravatar Denys Vlasenko2009-11-111-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix 'not not' in commentGravatar Denys Vlasenko2009-11-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>