diff options
author | Kurt J. Bosch <kjb-temp-2009@alpenjodel.de> | 2011-07-07 01:23:45 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-07-10 21:54:37 +0200 |
commit | 71e8540921bba7df926a3af9714d380c5af2b538 (patch) | |
tree | 96e566a234f2ea66644aea8a850b0b820a62cdcb /network | |
parent | 98363ca955850c62064934265c56a7ca159b0035 (diff) | |
download | initscripts-71e8540921bba7df926a3af9714d380c5af2b538.tar.xz |
rc.sysinit: Simplify /var/run/daemons workaround
There are only two possible situations:
a) /var/run is a symlink to /run: Conditional result is always 'false' even without checking /var/run/daemons (which doesn't exist).
b) /var/run is a directory: Conditional result is always 'true' because any symlink was removed when cleaning /var/run.
So following changes can be made:
* /var/run/daemons can be removed unconditionally because a symlink doesn't survive cleaning of /var/run anyway.
* The check whether /var/run/daemons is a symlink can be dropped because it has actually no effect.
Furthermore we can refactor to use the same conditional used for cleaning /var/run because we can't create the symlink if /var/run is not a directory.
Diffstat (limited to 'network')
0 files changed, 0 insertions, 0 deletions