1 |
Author: vapier |
2 |
Date: 2008-03-31 00:03:12 +0000 (Mon, 31 Mar 2008) |
3 |
New Revision: 3118 |
4 |
|
5 |
Modified: |
6 |
branches/baselayout-1_12/sbin/functions.sh |
7 |
Log: |
8 |
add a function to get the softlevel |
9 |
|
10 |
Modified: branches/baselayout-1_12/sbin/functions.sh |
11 |
=================================================================== |
12 |
--- branches/baselayout-1_12/sbin/functions.sh 2008-03-31 00:01:13 UTC (rev 3117) |
13 |
+++ branches/baselayout-1_12/sbin/functions.sh 2008-03-31 00:03:12 UTC (rev 3118) |
14 |
@@ -103,6 +103,14 @@ |
15 |
} |
16 |
[[ ${RC_BOOTLOG} == "yes" ]] && import_addon bootlogger.sh |
17 |
|
18 |
+# char *softlevel() |
19 |
+# |
20 |
+# Return current SOFTLEVEL |
21 |
+# |
22 |
+softlevel() { |
23 |
+ echo $(rc-status --runlevel) |
24 |
+} |
25 |
+ |
26 |
# void get_bootconfig() |
27 |
# |
28 |
# Get the BOOTLEVEL and SOFTLEVEL by setting |
29 |
|
30 |
-- |
31 |
gentoo-commits@l.g.o mailing list |