aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-03-06savecache should not fail if we are shutting downWilliam Hubbs
Since mount-ro needs to run unconditionally, we need to have savecache report that it ran successfully when the system is shutting down. X-Gentoo-Bug: 356393 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=356393
2011-03-05remove references to the migration guideWilliam Hubbs
The openrc code base is not gentoo specific, so I feel that we should not refer to the migration guide in the comments inside the configuration files.
2011-03-05allow default rc_sys value to be set at build timeWilliam Hubbs
This allows the default value of rc_sys to be set when openrc is compiled. This will allow openrc to be installed, e.g. on vserver guests and will allow them to be rebooted without the need to edit rc.conf. This patch is a combined effort between myself and Robin Johnson. X-Gentoo-Bug: 357247 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=357247
2011-03-03fix typoWilliam Hubbs
2011-02-22net/ethtool: official interface for changing ethtool params (bug #195479)Robin H. Johnson
Implement a consistent interface for changing ethtool parameters, as suggested in bug 195479. All variable names are based on the long option to ethtool to set each group of parameters. Multiple entries seperated by newlines are permitted for variable values. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Gentoo-Bug: 195479
2011-02-22Update README.net to note that it represents newnet only.Robin H. Johnson
2011-02-21net/iproute2: Pass required explicit -6 for IPv6 tunnels (#347657)Robin H. Johnson
Tunnel modes ipip6 and ip6ip6 require an explicit family selection for the ip tunnel call. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Gentoo-Bug: 347657
2011-02-21net/vlan: update to use modern iproute2 interfaceRobin H. Johnson
This replaces the vlan setup code that previously used the old vconfig binary with a new implementation using the iproute2 interface. vconfig does not handle many of the newer setups. No automatic migration path is provided, as altering the configuration is non-trivial. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> Written-by: Guillaume Castagnino <casta@xwing.info> X-Gentoo-Bug: 346365
2011-02-16new implementation of applet optionWilliam Hubbs
This reworks the implementation of the --applet option so that it is processed in run_applets() and does not require two calls to the getopts_long() function. It is based on code by Robin Johnson and Chris Richards. X-Gentoo-Bug: 351712 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=351712
2011-02-14make version option commonWilliam Hubbs
This reworks the code for the version option so that it is part of the parser loop and is a common option to all applets.
2011-02-14Set unicode mode immediately at boot without consolefontSebastian Thorarensen
X-Gentoo-Bug: 354793 X-Gentoo-Bug-URL: http://bugs.gentoo.org/354793 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2011-02-14local: quote script names to handle spacesMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-14tests: filter valid parisc relocsMike Frysinger
Parisc generates a few relocs against internal symbols which are OK. X-Gentoo-Bug: 258913 X-Gentoo-Bug-URL: http://bugs.gentoo.org/258913 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-14hwclock: fix typo from an earlier style commitMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-14Fix bug #354805Anthony G. Basile
2011-02-12fix typo in iproute2 moduleChristian Wetzig
X-Gentoo-Bug: 354511 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=354511
2011-02-09set timezone if RC_HCTOSYS is not setWilliam Hubbs
We need to set the timezone for the system clock even when we allow the kernel to set the time. X-Gentoo-Bug: 248131 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=248131
2011-02-07fix symlink targetWilliam Hubbs
The target for the symlinks in ${SBINDIR} (the same directory as the rc binary) was "rc". This is not correct; the target should be ${SBINDIR}/rc instead.
2011-02-05bridge.sh: use correct POSIX test, = not ==Christian
X-Gentoo-Bug: 353124 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=353124
2011-02-04rework pam, ncurses and termcap include filesWilliam Hubbs
This allows error checking inside the included files instead of either including the appropriate file or a blank file. Also the blank file named .mk gets removed by this change.
2011-02-04remove BSD make code to handle including .dependWilliam Hubbs
2011-02-04use make conditional for -cstd flagWilliam Hubbs
cc.mk was using ashell call to determine the value of the cstd variable. This reworks that code so it uses a make conditional.
2011-02-04remove unnecessary shell callsWilliam Hubbs
The main makefile, init.d/Makefile and src/librc/Makefile all contain several shell calls which can be handled as make conditionals. This switches them to conditionals.
2011-01-31selinux: replace symlinks with wrapper scriptsChris Richards
This needs to be done on selinux systems so the proper context can be set for each rc applet. X-Gentoo-Bug: 351712 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=351712
2011-01-31use immediate evaluation for shell callsWilliam Hubbs
This reworks the shell calls in the makefiles to use immediate evaluation and should improve parallel building. X-Gentoo-Bug: 289264 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=289264
2011-01-31only support building with GNU MakeWilliam Hubbs
Update the documentation to state that openrc only works with gnu make. This needs to be done in order to address the parallel build issue. X-Gentoo-Bug: 289264 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=289264
2011-01-24add option to disable setting the system clock on boot for linux systemsWilliam Hubbs
This commit adds the clock_hctosys option which is used to skip setting the system clock on boot and can be used with a modern linux kernel which has the CONFIG_RTC_HCTOSYS option set to y. I would like to thank Dimitris Mandalidis for the report and for the patch to baselayout-1 on which my changes to openrc are based. X-Gentoo-Bug: 248131 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=248131
2011-01-20change local to run programsWilliam Hubbs
This changes the local service so that it will run programs located in @sysconfdir@/local.d instead of the local_start and local_stop functions from @sysconfdir@/conf.d/local. The advantage for the user is that these programs are not part of the openrc package, so the user does not have to worry about them being overwritten when openrc is upgraded. X-Gentoo-Bug: 351465 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=351465
2011-01-18test: You need to run "make" before "make check" will work.Robin H. Johnson
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-01-18docs: make check does not catch textfile trailing whitespace.Robin H. Johnson
2011-01-18Document all deprecated code for future removal.Robin H. Johnson
2011-01-18sh/init: Detect a mounted /proc without sleepingRobin H. Johnson
Previously we checked if /proc was alive by reading /proc/uptime twice with a 1 second sleep between calls, so that it had time to update. This got a complaint of an entire 1 second delay, so we improve the check to be much faster without sleep. We cannot continue to use /proc/uptime as it only has a 10ms resolution. X-Gentoo-Bug: 348416 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=348416 Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-01-17librc: delete trailing newlinesMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17tests: check for trailing blank newlinesMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17Add removal schedule document for code trimming/deprecation.Robin H. Johnson
2011-01-17Document that rc_sys_v{1,2} should not be used outside of OpenRC.Robin H. Johnson
2011-01-17Bug #351570: Fix hidden functions visibility for rc_deptree_load_file.Robin H. Johnson
2011-01-17Build cleanup: librc.funcs.hidden.list is generated by testsuite.Robin H. Johnson
2011-01-17Bug #351570: Hidden function fixes: rc_conf_value.Robin H. Johnson
Refactor rc_conf_value into librc for use in library context. Also requires moving: - rc_conf internal static - Defines: PROFILE_ENV, SYS_WHITELIST, USR_WHITELIST, RC_PATH_PREFIX moved to rc.h with new RC_ prefix added. - Defines: RC_CONF, RC_CONF_OLD moved to rc.h. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
2011-01-17tests: check for common style issuesMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17more whitespace cleanupMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17start-stop-daemon: use termios.h rather than sys/termios.hMike Frysinger
POSIX specifies termios.h, not sys/termios.h. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17start a STYLE fileMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17tests: setup env before reading local filesMike Frysinger
The local files we source might use local binaries (like eval_ecolors), so setup the env first. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17dist.mk: add a standard "distcheck" targetMike Frysinger
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17Style fix: "char *foo" not "char* foo".Robin H. Johnson
2011-01-17Style fix: /* */ comments not // comments.Robin H. Johnson
2011-01-17Style fix: "while (" not "while(".Robin H. Johnson
2011-01-17Style fix: "if (" not "if(".Robin H. Johnson
2011-01-17Better error checking of argc for --applet call.Robin H. Johnson