diff options
author | 2008-03-31 00:03:12 +0000 | |
---|---|---|
committer | 2008-03-31 00:03:12 +0000 | |
commit | 3108d59b3d652e05c9aa848a246ced24c02b1408 (patch) | |
tree | dcbadc2b2ff9ab392c965e76597805b0d950b27a | |
parent | use kbd binaries in PATH #215496 (diff) | |
download | baselayout-3108d59b3d652e05c9aa848a246ced24c02b1408.tar.gz baselayout-3108d59b3d652e05c9aa848a246ced24c02b1408.tar.bz2 baselayout-3108d59b3d652e05c9aa848a246ced24c02b1408.zip |
add a function to get the softlevel
svn path=/branches/baselayout-1_12/; revision=3118
-rw-r--r-- | sbin/functions.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sbin/functions.sh b/sbin/functions.sh index 42cc1b46..0724560a 100644 --- a/sbin/functions.sh +++ b/sbin/functions.sh @@ -103,6 +103,14 @@ bootlog() { } [[ ${RC_BOOTLOG} == "yes" ]] && import_addon bootlogger.sh +# char *softlevel() +# +# Return current SOFTLEVEL +# +softlevel() { + echo $(rc-status --runlevel) +} + # void get_bootconfig() # # Get the BOOTLEVEL and SOFTLEVEL by setting |