openrc/init.d
William Hubbs 863ef36011 mtab: fix test for a link to a location in /proc
/etc/mtab can be a link to a file in /proc. If it is, we should not
attempt to update /etc/mtab.

The original test used "! -w" as part of the test.  This does not
work since everything is writeable by root.

Thanks to Robin Johnson for the suggestion of using readlink -f and the
regular expression.

Reported-By: junkmailnotread@yahoo.com
X-Gentoo-Bug: 370037
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=370037
2011-07-26 00:45:22 -05:00
..
.gitignore Add a new staticroute init script so that .... static routes can be configured! 2009-10-16 08:08:22 +01:00
adjkerntz.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
bootmisc.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
consolefont.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
devd.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
devdb.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
devfs.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
dmesg.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
dumpon.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
fsck.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
hostid.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
hostname.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
hwclock.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
ipfw.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
keymaps.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
killprocs.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
local.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
localmount.in save and restore IFS correctly 2011-07-07 12:23:58 -05:00
Makefile remove unnecessary shell calls 2011-02-04 17:46:57 -06:00
Makefile.FreeBSD We need to ensure that the init script started is correct, translating symlinks. This has a new rule - multiplexed services must exist in the same dir as the master sript. So we need to ensuret that net.lo(0) is the real script and not a symlink itself. This fixes Gentoo #219526. 2008-04-29 10:25:45 +00:00
Makefile.Linux Punt halt init script. sysvinit should install it. See Gentoo bug #246502 on how to handle this. 2008-11-12 16:28:07 +00:00
Makefile.NetBSD Add the devdb init script. 2008-05-12 15:11:04 +00:00
mixer.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
modules.in eat trailing whitespace 2011-07-04 18:27:00 -04:00
mount-ro.in save and restore IFS correctly 2011-07-07 12:23:58 -05:00
moused.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
mtab.in mtab: fix test for a link to a location in /proc 2011-07-26 00:45:22 -05:00
net.lo.in Add warnings for the use of bash arrays 2011-07-14 01:26:29 -05:00
netmount.in fix issue with extra_net_fs_list 2011-07-05 18:41:33 -05:00
network.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
newsyslog.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
nscd.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
numlock.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
pf.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
powerd.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
procfs.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
rarpd.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
rc-enabled.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
root.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
rpcbind.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
savecache.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
savecore.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
staticroute.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
swap-blk.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
swap.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
swclock.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
syscons.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
sysctl.BSD.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
sysctl.Linux.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
sysfs.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
syslogd.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
termencoding.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
ttys.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
urandom.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00
wscons.in drop useless "All rights reserved" notice 2011-06-29 19:46:31 -04:00