openrc/init.d
Mike Frysinger 7c1a2defb6 bootmisc: clean up tmpdir cleaning
Make sure that the `cd` into the $dir actually happened.  This we don't
have to worry about relative paths deleting stuff it shouldn't.  This
step shouldn't fail, but who knows, and better to be sane than to wipe
out someone's valuables.

When wiping, automatically fall back to a dedicated `find` if the initial
`rm` failed on us.  This should help with the speed issues related to the
later `find`.

Have the later find only search the top level allowing `rm` to walk the
directory contents.  This means that -xdev no longer applies, but since
the earlier `rm` wasn't doing -xdev either and no one has complained thus
far, let's assume it isn't an issue.  Also convert to the -exec...+ form
so that we don't have to worry about long argument lists, and add -- to
the `rm` that was previously missing.  In practice, this shouldn't matter
as we've already deleted all those files, but better safe than sorry.

When cleaning, since we've already done a `cd` into the $dir, no point in
prefixing all the paths with $dir too.  Go with the relative loving.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
X-Gentoo-Bug: 359831
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=359831
2011-03-25 11:25:25 -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 more whitespace cleanup 2011-01-17 04:49:12 -05:00
bootmisc.in bootmisc: clean up tmpdir cleaning 2011-03-25 11:25:25 -05:00
consolefont.in Set unicode mode immediately at boot without consolefont 2011-02-14 18:54:35 -05:00
devd.in We should use -feature instead of nofeature. 2009-07-01 00:07:32 +01:00
devdb.in Add (c) to Copyright 2009-05-01 15:11:40 +01:00
devfs.in We should use -feature instead of nofeature. 2009-07-01 00:07:32 +01:00
dmesg.in We should use -feature instead of nofeature. 2009-07-01 00:07:32 +01:00
dumpon.in We should use -feature instead of nofeature. 2009-07-01 00:07:32 +01:00
fsck.in Move on_ac_power to a shell script. 2009-12-10 22:30:56 +00:00
hostid.in more whitespace cleanup 2011-01-17 04:49:12 -05:00
hostname.in We should use -feature instead of nofeature. 2009-07-01 00:07:32 +01:00
hwclock.in hwclock: fix typo from an earlier style commit 2011-02-14 12:06:58 -05:00
ipfw.in more whitespace cleanup 2011-01-17 04:49:12 -05:00
keymaps.in more whitespace cleanup 2011-01-17 04:49:12 -05:00
killprocs.in more whitespace cleanup 2011-01-17 04:49:12 -05:00
local.in local: quote script names to handle spaces 2011-02-14 12:06:58 -05:00
localmount.in Fix bug #354805 2011-02-14 04:41:08 -05:00
Makefile remove unnecessary shell calls 2011-02-04 17:46:57 -06:00
Makefile.FreeBSD
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 We should use -feature instead of nofeature. 2009-07-01 00:07:32 +01:00
modules.in Add support for Linux Containers, fixes #202. 2009-11-04 19:21:24 +00:00
mount-ro.in Add support for Linux Containers, fixes #202. 2009-11-04 19:21:24 +00:00
moused.in more whitespace cleanup 2011-01-17 04:49:12 -05:00
mtab.in If mtab is write only and a symlink then assume it's linked to /proc/mounts 2009-07-20 19:47:08 +01:00
net.lo.in do not delete addresses when stopping a ppp interface. 2011-03-21 23:55:55 -05:00
netmount.in more whitespace cleanup 2011-01-17 04:49:12 -05:00
network.in more whitespace cleanup 2011-01-17 04:49:12 -05:00
newsyslog.in We should use -feature instead of nofeature. 2009-07-01 00:07:32 +01:00
nscd.in Add (c) to Copyright 2009-05-01 15:11:40 +01:00
numlock.in Add support for Linux Containers, fixes #202. 2009-11-04 19:21:24 +00:00
pf.in more whitespace cleanup 2011-01-17 04:49:12 -05:00
powerd.in We should use -feature instead of nofeature. 2009-07-01 00:07:32 +01:00
procfs.in random spelling fixes 2010-01-08 22:02:51 +00:00
rarpd.in Add (c) to Copyright 2009-05-01 15:11:40 +01:00
rc-enabled.in We should use -feature instead of nofeature. 2009-07-01 00:07:32 +01:00
root.in Add support for Linux Containers, fixes #202. 2009-11-04 19:21:24 +00:00
rpcbind.in Add (c) to Copyright 2009-05-01 15:11:40 +01:00
savecache.in savecache should not fail if we are shutting down 2011-03-06 11:50:06 -06:00
savecore.in We should use -feature instead of nofeature. 2009-07-01 00:07:32 +01:00
staticroute.in Support inet6 routes. 2009-12-14 19:31:18 +00:00
swap-blk.in more whitespace cleanup 2011-01-17 04:49:12 -05:00
swap.in more whitespace cleanup 2011-01-17 04:49:12 -05:00
swclock.in Add a --warn option to just warn when reference file does not exist. 2009-11-13 21:31:09 +00:00
syscons.in more whitespace cleanup 2011-01-17 04:49:12 -05:00
sysctl.BSD.in remove "use hostname" from sysctl for bsd systems 2010-11-16 10:03:05 -06:00
sysctl.Linux.in bug #349443: remove -openvz keyword from sysctl service 2010-12-28 13:54:19 -06:00
sysfs.in We should use -feature instead of nofeature. 2009-07-01 00:07:32 +01:00
syslogd.in We should use -feature instead of nofeature. 2009-07-01 00:07:32 +01:00
termencoding.in termencoding needs root to be mounted read/write 2011-03-23 22:41:03 -05:00
ttys.in more whitespace cleanup 2011-01-17 04:49:12 -05:00
urandom.in Host should configure urandom. 2009-07-01 00:13:25 +01:00
wscons.in more whitespace cleanup 2011-01-17 04:49:12 -05:00