aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mdev.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* mdev: do not treat non-leading '#' chars as start of comment. Closes 4676Denys Vlasenko2012-01-111-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: trim overlong comments. No code changesDenys Vlasenko2011-09-221-30/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: don't reparse rules on -sDenys Vlasenko2011-09-221-217/+341
| | | | | | | | | | | | function old new delta make_device 1648 1843 +195 clean_up_cur_rule - 61 +61 make_default_cur_rule - 41 +41 mdev_main 690 712 +22 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 2/0 up/down: 319/0) Total: 319 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* add INIT_G()'s. No code changes.Denys Vlasenko2011-09-211-0/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: expand --help so that it's actually useful.Denys Vlasenko2011-09-191-8/+80
| | | | | | | function old new delta packed_usage 28634 28822 +188 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* simplify parsing of /etc/busybox.confDenys Vlasenko2011-05-161-1/+1
| | | | | | | function old new delta parse_config_file 799 667 -132 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* move remaining help text from include/usage.src.hPere Orga2011-04-111-0/+35
| | | | | Signed-off-by: Pere Orga <gotrunks@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: 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>
* mdev: fix non-working device deletion, add a test for thatDenys Vlasenko2010-08-161-2/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: introduce and use bb_unsetenv_and_freeDenys Vlasenko2010-06-241-4/+2
| | | | | | | | | | | | | function old new delta bb_unsetenv_and_free - 17 +17 tcpudpsvd_main 1819 1810 -9 safe_setenv 58 47 -11 udhcp_run_script 630 616 -14 make_device 1683 1663 -20 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/4 up/down: 17/-54) Total: -37 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: add "!" syntax supportDenys Vlasenko2010-04-021-19/+32
| | | | | | | | | Based on the patch by Steve Bennett <steveb@workware.net.au> function old new delta make_device 1640 1673 +33 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: merge some common stringsDenys Vlasenko2010-03-231-1/+1
| | | | | | | | text data bss dec hexfilename 838650 8009 0 846659 ceb43busybox_old 838519 8009 0 846528 ceac0busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: fix a trivial SEGVDenys Vlasenko2010-03-161-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: fix subsystem passing (new kernels broke it again) - bugs 639, 721.Denys Vlasenko2010-02-241-22/+32
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: suppress ~60% of "aliased warnings" on gcc-4.4.1Denys Vlasenko2010-02-041-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: print line# in error messagesDenys Vlasenko2009-11-071-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: do not die on mknod errorsDenys Vlasenko2009-11-011-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: adjust error messageBernhard Reutner-Fischer2009-10-271-1/+1
| | | | | | | | | | function old new delta .rodata 126715 126706 -9 (reusing common error string) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: handle string modesBernhard Reutner-Fischer2009-10-271-2/+3
| | | | | | | parse ugoa=rwxXst via bb_parse_mode (+5b) Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: tiny shrinkage by index_in_stringsBernhard Reutner-Fischer2009-10-271-3/+6
| | | | | | | | | text data bss dec hex filename 2633 0 0 2633 a49 util-linux/mdev.o.old 2624 0 0 2624 a40 util-linux/mdev.o Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: be more permissive on errors (dont die): mdev -s users want thatDenys Vlasenko2009-07-021-3/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: set $MDEV correctly for renamed nodesDenys Vlasenko2009-07-021-37/+39
| | | | | | | | function old new delta make_device 1467 1502 +35 build_alias 78 - -78 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: fix the case when move rule deletes node with name == device_nameDenys Vlasenko2009-06-221-19/+17
| | | | | Signed-off-by: Jean Wolter <jw5@os.inf.tu-dresden.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: revert last wrong commitDenys Vlasenko2009-05-041-6/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: do not exit if user:group parse failed. closes bug 309.Denys Vlasenko2009-05-021-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mdev: fix a case where we mangle device_path string and then use it.Denys Vlasenko2009-05-011-1/+4
|
* mdev: enlarge inline documentationDenis Vlasenko2009-04-191-6/+22
|
* mdev: support $ENVVAR=regexDenis Vlasenko2009-04-191-27/+42
|
* mdev: Rob's #if forest removalDenis Vlasenko2009-04-191-178/+146
| | | | | *: remove superfluous conts in "f(type *const param)"
* mdev: add large comment, fix a buglet with subsystem and /sys/blockDenis Vlasenko2009-04-171-4/+42
|
* mdev: set mode, needed when device node already exists.Denis Vlasenko2009-04-161-0/+1
|
* mdev: change subsystem syntax from /subsystem to subsystem/devnameDenis Vlasenko2009-04-161-13/+15
|
* mdev: safer handling of $SUBSYSTEM in mdev -sDenis Vlasenko2009-04-141-7/+7
|
* randomconfig fixesDenis Vlasenko2009-04-141-3/+4
|
* mdev: add support for - "dont stop here" charDenis Vlasenko2009-04-131-82/+97
| | | | | | | | | function old new delta make_device 1340 1362 +22 packed_usage 26291 26299 +8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 30/0) Total: 30 bytes
* mdev: provide $SUBSYSTEM (by Vladimir)Denis Vlasenko2009-04-131-7/+26
| | | | | | | | | | function old new delta make_device 1265 1340 +75 dirAction 14 60 +46 mdev_main 676 695 +19 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 140/0) Total: 140 bytes
* mdev: fix a bug where \t is not treated as delimiter after [>|=PATH]Denis Vlasenko2009-04-131-1/+4
|
* mdev: make usage text more usefulDenis Vlasenko2009-04-131-17/+17
| | | | | | function old new delta packed_usage 26235 26291 +56
* mdev: ignore events with "$SUBSYSTEM" == "firmware" && "$ACTION" == "remove"Denis Vlasenko2009-04-131-10/+21
| | | | | | function old new delta mdev_main 665 676 +11
* mdev: do not complain if /sys/block doesn't existDenis Vlasenko2009-04-121-2/+3
|
* mdev: if /sys/class/block exists, don't scan /sys/blockDenis Vlasenko2009-02-131-4/+11
|
* mdev: fix breakage caused by unified parser usageDenis Vlasenko2009-01-121-2/+3
|
* do not whine if /sys/block does not exist ... embedded systems dont need ↵Mike Frysinger2009-01-081-1/+1
| | | | stinkin block devices
* libbb: add bb_unsetenv (taken from hush).Denis Vlasenko2008-12-301-2/+1
| | | | | | | | | | | | | | | | | | | udhcpc: stop filtering environment passed to the script. crond: fix uncovered potential bug (failing unsetenv) mdev: fix uncovered potential bug (failing unsetenv) tcp, udpsvd: fix uncovered potential bug (failing unsetenv) function old new delta safe_setenv - 58 +58 bb_unsetenv - 55 +55 builtin_unset 139 138 -1 tcpudpsvd_main 1843 1830 -13 free_strings_and_unsetenv 87 53 -34 udhcp_run_script 1186 1133 -53 safe_setenv4 62 - -62 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 0/4 up/down: 113/-163) Total: -50 bytes
* whitespace fixes, no code changesDenis Vlasenko2008-10-291-2/+2
|
* watchdog: add -T optionDenis Vlasenko2008-09-071-29/+26
| | | | | | | | function old new delta watchdog_main 159 219 +60 mdev: support match by major,minor. See bug 4714. +100 bytes.
* fix several problems with config parser:Denis Vlasenko2008-07-261-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a bug where it underflows the string a bug where it never frees parser_t struct make read_config() return 0 if parser is NULL, make config_close() accept and ignore NULL parser - eliminates many if() blocks reverse the sense of parser bit flags - negative flags are harder to grok. hexdump: revert the change to use config parser, it is BIGGER and also requires additional quirks in parser *: explicitly use PARSER_NORMAL instead of 0 function old new delta login_main 1575 1596 +21 config_close 18 29 +11 bbunpack 383 391 +8 qgravechar 106 109 +3 rtnl_tab_initialize 121 117 -4 expand 1697 1693 -4 man_main 717 712 -5 nameif_main 674 668 -6 hexdump_main 597 591 -6 read_config 217 209 -8 dnsd_main 1478 1470 -8 sysctl_main 203 189 -14 config_open2 44 25 -19 make_device 1177 1141 -36 config_read 597 549 -48 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/11 up/down: 43/-158) Total: -115 bytes
* mdev: do not complain if mdev.conf does not exist;Denis Vlasenko2008-07-261-138/+155
| | | | | | use #if to prevent gcc from generating dead code (sadly, it's more ugly this way)
* - unused variables if !ENABLE_FEATURE_MDEV_RENAME_REGEXPBernhard Reutner-Fischer2008-07-221-1/+4
|
* libbb: updated config_parse() from VladimirDenis Vlasenko2008-07-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | function old new delta config_read 385 460 +75 runsvdir_main 1701 1716 +15 readit 331 338 +7 passwd_main 1049 1053 +4 parse_command 1504 1507 +3 decode_format_string 822 824 +2 bb__parsespent 117 119 +2 udhcp_get_option 221 222 +1 changepath 196 194 -2 parse_inittab 400 396 -4 nameif_main 683 679 -4 make_device 1176 1172 -4 config_open 48 40 -8 expand_main 698 689 -9 readcmd 1012 1002 -10 config_free_data 37 21 -16 SynchronizeFile 683 643 -40 sleep_main 474 362 -112 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 8/10 up/down: 109/-209) Total: -100 bytes