3e3b54ceedeat leading newline as the common clock has a proper trailing newline
Mike Frysinger
2007-09-24 10:13:20 +00:00
495690ea5ePlug some leaks
Roy Marples
2007-09-24 09:07:00 +00:00
7a2507c52fFix pppd metric, #193574 thanks to Martin Väth.
Roy Marples
2007-09-24 06:57:40 +00:00
e0d06f556eAdd extraopts to our usage
Roy Marples
2007-09-21 11:52:37 +00:00
faa555efe2No need for this convulted sed now our prefixed output is on a direct terminal again :)
Roy Marples
2007-09-21 08:54:36 +00:00
45bd125dccUse a pty for prefixed output instead of pipes for stdout/stderr. This is so that programs can get information about the controlling terminal. This change was triggered by bug #188506 where it's possible that stdin, stdout and stderr didn't point to a terminal but ended up on one via our pipes. Using a pty means that stdout and stderr always point to a terminal, but we lose the ability to tell them apart. If there is not a pty available then we use un-prefixed output as normal. This change has also introduced the need for a signal pipe so that SIGCHLD can exit the loop cleanly.
Roy Marples
2007-09-21 08:49:43 +00:00
ca58877ed0Harden startup and shutdown
Roy Marples
2007-09-20 22:45:16 +00:00
963229dce8whitespace
Roy Marples
2007-09-20 11:53:10 +00:00
ccced38428libeinfo now works out the number of columns from stdout rather than stdin, #188506.
Roy Marples
2007-09-20 11:47:04 +00:00
c1cd1da595Warn if file/directory mismatch
Roy Marples
2007-09-19 17:18:43 +00:00
50ea72ef4bAllow checkown to create files too.
Roy Marples
2007-09-19 17:08:25 +00:00
40a1beabe0Move the error messages to the option parsing
Roy Marples
2007-09-19 16:54:23 +00:00
b6aa1c857cAdded the checkown applet based on the work by Renato Caldas, #192682 checkdir ensures that the specified files (or directories) are owned by the current user/group or as specified on the command line. You can optionally check permissions too.
Roy Marples
2007-09-19 16:27:37 +00:00
a74dd430d5Punt rc_xcalloc as nothing uses it
Roy Marples
2007-09-19 13:55:01 +00:00
77f9015f0b/lib/rcscripts -> /lib/rc
Roy Marples
2007-09-19 13:53:40 +00:00
987c72f12f--opts to --options
Roy Marples
2007-09-19 11:53:35 +00:00
5248fb52faplugin hook function is now rc_plugin_hook instead of a name based on the name of the plugin.
Roy Marples
2007-09-19 09:00:43 +00:00
726e754fffvar no longer used
Roy Marples
2007-09-18 17:37:35 +00:00
1996a1e032Hide errors caused by old splash plugin for the time being
Roy Marples
2007-09-18 16:57:39 +00:00
5ba4ad52e2Only mount /sys if it's not mounted, #192436.
Roy Marples
2007-09-18 15:45:15 +00:00
81c009e47dDon't be an ass - don't free the 2nd list. Instead just empty it.
Roy Marples
2007-09-18 15:43:19 +00:00
9587d71df3Clarify strlist_join behaviour
Roy Marples
2007-09-18 14:18:22 +00:00
90c2291cacWhitespace
Roy Marples
2007-09-18 14:13:16 +00:00
75b5fdff29Match the recent api change to rc_strlist_join also. We now free the 2nd list for ease of use.
Roy Marples
2007-09-18 14:08:56 +00:00
c8b03c96b7API change! rc_config_env is renamed to rc_make_env and takes no argument.
Roy Marples
2007-09-18 12:20:55 +00:00
807e4afbedDon't space separate the options
Roy Marples
2007-09-18 12:08:04 +00:00
936dc94351API change! rc_ls_dir, rc_get_config and rc_get_list no longer take a starting list as a first argument. Instead, use rc_strlist_join to append or prepend the new list to an existing list.
Roy Marples
2007-09-18 12:04:51 +00:00
f1bba12892API change! rc_strlist_add and friends now take char *** instead of char ** and return a pointer to the item added instead of the new list head. This is so we can easily tell if the item was successfully added or not instead of iterating through the list looking for it.
Roy Marples
2007-09-18 11:36:55 +00:00
99eabdc3baRe-work mountinfo so that we have a lot less OS specific code
Roy Marples
2007-09-18 09:20:30 +00:00
47f21d06a0Fix fallback configurations
Roy Marples
2007-09-17 21:38:58 +00:00
fac4de2b46Portability
Roy Marples
2007-09-17 20:59:55 +00:00
cc7df1d1f8Document the preferance of wpa_supplicant, #192828.
Roy Marples
2007-09-17 17:44:10 +00:00
bcb85a016dBSD will need a fixed gcc for --as-needed
Roy Marples
2007-09-12 14:32:18 +00:00
a5585487aaMore --as-needed foo
Roy Marples
2007-09-11 22:06:27 +00:00
607f2b37b1Work better with --as-needed
Roy Marples
2007-09-11 21:45:26 +00:00
bc6b031f2elibrc should link against libeinfo too
Roy Marples
2007-09-10 21:26:13 +00:00
2aac9fa464revert EARLY_MOUNTS since everything in the boot runlevel depends on localmount already and anything that runs before it does not rely on things like /tmp or /var/run (and because i confused localmount with checkroot)
Mike Frysinger
2007-09-09 16:49:40 +00:00
5420f22a14add BSD SPECIFIC OPTIONS marking
Mike Frysinger
2007-09-09 16:12:53 +00:00
869da3c685only do the X lock stuff in /tmp so people can overload WIPE_TMP_DIRS for a general "wipe this directory" option. also force +t on /tmp and /var/tmp.
Mike Frysinger
2007-09-09 16:08:32 +00:00
230421384aAllow people to specify a list of early mount points which will be mounted at the end of localmount so they can do tmpfs on things like /tmp #181527.
Mike Frysinger
2007-09-09 16:04:40 +00:00
06ae2e5593Allow people to specify a list of temp dirs to clean in bootmisc #191807.
Mike Frysinger
2007-09-09 15:52:05 +00:00
ba4b5d5b7fMakefile in src now supports pmake as used on the BSDs.
Roy Marples
2007-09-06 13:00:03 +00:00
d095d4d8f5strdup -> rc_xstrdup
Roy Marples
2007-09-06 08:59:35 +00:00
eb5b1c4c41start-stop-daemon now works with userids correctly when a pidfile is not specified, #191206.
Roy Marples
2007-09-04 09:32:36 +00:00
52f7df0d0cAdd --quiet to mountinfo
Roy Marples
2007-09-03 14:02:15 +00:00
a166958537Always attempt to mount /dev/pts when devpts is available as it may appear in some 2.4 setups.
Mike Frysinger
2007-09-03 03:10:42 +00:00
2a1e0c1d8dRelease rc4
Roy Marples
2007-09-02 13:12:24 +00:00
09374583acRC_TTY_NUMBER now defaults to 12, #190996 thanks to Pacho Ramos.
Roy Marples
2007-09-02 13:09:34 +00:00
2d39857170Don't use local here
Roy Marples
2007-09-02 12:55:18 +00:00
c04af92cb4We may not always add to the array, so re-count it afterwards
Roy Marples
2007-09-01 00:51:41 +00:00
a9ebc7a2afOnly generate dependencies for Gentoo scripts, #190547.
Roy Marples
2007-08-31 16:21:19 +00:00
6cf2085488Don't add multiple entries to ld.so.conf
Roy Marples
2007-08-31 11:06:49 +00:00
d3bd76486aMore path fixes thanks to Thomas Pani
Roy Marples
2007-08-28 16:28:33 +00:00
f7583144f3Use correct defines
Roy Marples
2007-08-28 13:10:07 +00:00
144d9653e1Undocument pause action, fix --nodeps and --ifstarted, #190045.
Roy Marples
2007-08-28 13:06:44 +00:00
849b983c3f#define shutdown
Roy Marples
2007-08-28 09:17:04 +00:00
d6acd7d83eMove more stuff to #defines
Roy Marples
2007-08-28 09:13:46 +00:00
36118e7dbdFix ksoftlevel handling, #190420.
Roy Marples
2007-08-28 08:50:04 +00:00
2845610fa6Add /etc/gentoo-release to CONFIG_PROTECT_MASK.
Mike Frysinger
2007-08-26 15:57:00 +00:00
0d031e5481Punt PAGER and EDITOR. People need to set this themselves now.
Mike Frysinger
2007-08-25 18:47:45 +00:00
4a23e42be8Make sure we list all config files in rc help output.
Mike Frysinger
2007-08-25 18:17:05 +00:00
9cf4628aaaSetup wtmp for BSD too
Roy Marples
2007-08-23 10:25:09 +00:00
1ef8a7f041Only open /proc/cmdline if it exists, #189686 thanks to Christian Affolter
Roy Marples
2007-08-22 14:10:46 +00:00
25d46c0e96Fix pppd getting the interface metric.
Roy Marples
2007-08-21 08:21:40 +00:00
dc5e26e056rc3
Roy Marples
2007-08-20 13:32:31 +00:00
4a8feebc1bAs discussed on the -dev ml, RC_DEPEND_STRICT now defaults to yes.
Roy Marples
2007-08-20 09:10:24 +00:00
9ea8afb200No point in having to lots of get the user code.
Roy Marples
2007-08-20 09:08:06 +00:00
0963e06766Mark the right service as failed and only output a new line if we outputted anything at all for /etc/init.d/foo needsme
Roy Marples
2007-08-17 13:23:43 +00:00
7aaa601aadneedsme should always be valid too
Roy Marples
2007-08-17 13:23:02 +00:00
b10bd4b9d7Stop un-needed services when changing runlevels, #189050.
Roy Marples
2007-08-17 12:14:04 +00:00
adbe039385When shutting down, stop the service even if dependants failed.
Roy Marples
2007-08-17 11:31:36 +00:00
bc90e41b76Intergrate our standard options
Roy Marples
2007-08-17 11:01:18 +00:00
d1a1e3a3c9Allow --user and --group to also mean --chuid and --chgrp
Roy Marples
2007-08-17 10:54:04 +00:00
e0a29e41a2Allow 'del' to work as a command
Roy Marples
2007-08-17 09:46:01 +00:00
eba9b8ac14Fully move esyslog into rc
Roy Marples
2007-08-16 17:09:57 +00:00
6e5c8f8e5aAdd esyslog support
Roy Marples
2007-08-16 16:53:20 +00:00
b8b1352b38whitespace
Roy Marples
2007-08-15 17:47:25 +00:00
2ad4a5ba4aAdd config to rc-help.sh
Roy Marples
2007-08-15 16:58:51 +00:00
3950eb6eba`config /etc/fstab' can now be used in depend() functions to show that the deptree should be regenerated if /etc/fstab has changed.
Roy Marples
2007-08-15 14:49:41 +00:00
7d68200f24Add bzr port 4155 to /etc/services, #188970 thanks to Andrew Cowie.
Roy Marples
2007-08-15 11:20:08 +00:00
a85a66348bNeed to specify table for busybox.
Roy Marples
2007-08-10 10:34:50 +00:00
0084bc41efDon't link to rt anymore as it makes dlopen leak - we now use nanosleeps to achieve the same goal (a loop + timeout). No longer put / at the end of directories, instead prefix like so RC_LIBDIR "/foo" to ensure more robust code.
Roy Marples
2007-08-09 14:33:20 +00:00
9072ce748fgetoptify and simply the code even more.
Roy Marples
2007-08-09 09:53:47 +00:00
874bee1338whitespace
Roy Marples
2007-08-08 22:46:27 +00:00
f8c1ee736cAdd help to rc-update #188170 and tidy up the code a fair bit.
Roy Marples
2007-08-08 22:35:32 +00:00
06902f5ff3Use the right dir from fstab
Roy Marples
2007-08-08 12:39:05 +00:00
94c6ff7bb7Plug a leek for non selinux linux systems
Roy Marples
2007-08-08 03:07:42 +00:00
30853d7473If given a pidfile, just match on that for seeing if we have crashed or not, #186159.
Roy Marples
2007-08-08 03:07:09 +00:00
ce12aa56d4Return the next available ifindex for BSD too
Roy Marples
2007-08-07 21:04:27 +00:00
2fdff9d8d6Always give ppp a defaultmetric
Roy Marples
2007-08-07 21:01:16 +00:00
3295a9c0e0Add a defaultmetric to ppp if we have metric_$IFACE
Roy Marples
2007-08-07 20:51:08 +00:00
01ea7e3186More pppd fixes
Roy Marples
2007-08-07 20:23:38 +00:00
d50a46a7a5Fix chat connects for pppd
Roy Marples
2007-08-07 12:56:07 +00:00
8d0f3f2b16Try and hide the terminal escape codes when they fail.
Roy Marples
2007-08-07 07:25:24 +00:00
1e4357ad01Boot properly when we cannot set an early font, #187628.
Roy Marples
2007-08-04 20:35:05 +00:00
3e5526fd76Fix rc-update, #187487 and release rc2.
Roy Marples
2007-08-04 15:05:12 +00:00
9169c51d39Fix adding multiple IP addresses, #187526.
Roy Marples
2007-08-03 13:54:46 +00:00
65a9e4618bFix static IPv6 routes, #187514.
Roy Marples
2007-08-03 13:53:20 +00:00
a3aff5d83cWups, these definitions need to be in rc.h really
Roy Marples
2007-08-03 10:14:38 +00:00
534b4300e7rc1
Roy Marples
2007-08-02 11:09:09 +00:00