1 |
commit: 20f612080c4f392abd622eab0afcd5ff5cea05f5 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 27 23:59:39 2011 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 27 23:59:39 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=20f61208 |
7 |
|
8 |
net: use yesno to test up_before_preup |
9 |
|
10 |
--- |
11 |
init.d/net.lo.in | 2 +- |
12 |
1 files changed, 1 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/init.d/net.lo.in b/init.d/net.lo.in |
15 |
index 02d11a8..f8ec02c 100644 |
16 |
--- a/init.d/net.lo.in |
17 |
+++ b/init.d/net.lo.in |
18 |
@@ -504,7 +504,7 @@ start() |
19 |
# available in preup and afterwards incase the user inadvertently |
20 |
# brings it down |
21 |
if [ "$(command -v preup)" = "preup" ]; then |
22 |
- [ "${_up_before_preup}" = "no" ] || _up 2>/dev/null |
23 |
+ yesno "${_up_before_preup:-yes}" && _up 2>/dev/null |
24 |
ebegin "Running preup" |
25 |
eindent |
26 |
preup || return 1 |