Lines 2-8
Link Here
|
2 |
# Copyright 1999-2007 Gentoo Foundation |
2 |
# Copyright 1999-2007 Gentoo Foundation |
3 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# Distributed under the terms of the GNU General Public License v2 |
4 |
|
4 |
|
5 |
. /etc/init.d/functions.sh |
5 |
if test "`ps -p 1 -o comm=`" = "systemd"; then |
|
|
6 |
SCRIPTNAME="$0" |
7 |
|
8 |
ebegin() { |
9 |
logger -t "$SCRIPTNAME" "${@:1}" |
10 |
} |
11 |
|
12 |
eend() { |
13 |
local retval=$1 |
14 |
if test $retval -ne 0; then |
15 |
logger -t "$SCRIPTNAME" "Error return code $retval: ${@:2}" |
16 |
exit $retval |
17 |
fi |
18 |
} |
19 |
else |
20 |
. /etc/init.d/functions.sh |
21 |
fi |
6 |
|
22 |
|
7 |
# store persistent-rules that got created while booting |
23 |
# store persistent-rules that got created while booting |
8 |
# when / was still read-only |
24 |
# when / was still read-only |
Lines 22-25
store_persistent_rules() {
Link Here
|
22 |
|
38 |
|
23 |
store_persistent_rules |
39 |
store_persistent_rules |
24 |
|
40 |
|
25 |
# vim:ts=4 |
41 |
# vim:ts=4 sw=4 |