olsr: init: log: move the error logging just under the normal logger
authorBastian Bittorf <bittorf@bluebottle.com>
Fri, 19 Apr 2013 11:04:49 +0000 (13:04 +0200)
committerBastian Bittorf <bittorf@bluebottle.com>
Fri, 19 Apr 2013 11:04:49 +0000 (13:04 +0200)
olsrd/files/olsrd.init

index e025ff9..fe0ba77 100644 (file)
@@ -20,11 +20,14 @@ T=' '
 N='
 '
 
-log()
-{
+log() {
        logger -t olsrd -p daemon.info -s "$1"
 }
 
+error() {
+       log "error() ${initscript}: $@"
+}
+
 validate_varname() {
        local varname="$1"
        [ -z "$varname" -o "$varname" != "${varname%%[!A-Za-z0-9_]*}" ] && return 1
@@ -737,10 +740,6 @@ olsrd_setup_smartgw_rules() {
        fi
 }
 
-error() {
-       log "error() ${initscript}: $@"
-}
-
 start() {
        SYSTEM_HOSTNAME=
        SYSTEM_LAT=