Upgrades to packages
[hvlinux.git] / stage2 / bootscripts / functions
index e979add..4824721 100644 (file)
@@ -54,7 +54,7 @@ LOGLEVEL="4"
 # Timezone
 export TZ="America/Montreal"
 
-INIT_LOG_PATH="/tmp/log-init"
+INIT_LOG_PATH="/var/log/log-init"
 INIT_LOG_FILE="$INIT_LOG_PATH/init.log"
 
 # The print_status prints a coloured "X" letter inside the checkbox to the left
@@ -246,7 +246,7 @@ loadproc()
     # Find the basename of the first parameter (the daemon's name without the
     # path that was provided so /usr/sbin/syslogd becomes plain 'syslogd' after
     # basename ran).
-    base=$(/usr/bin/basename ${1})
+    base=$(basename ${1})
 
     # the pidlist variable will contain the output of the pidof command. pidof
     # will try to find the PID's that belong to a certain string; $base in
@@ -309,7 +309,7 @@ killproc_path()
     
     # Find the basename of the first parameter (the daemon's name without the
     # path).
-    base=$(/usr/bin/basename ${1})
+    base=$(basename ${1})
 
     piddir=${2}
 
@@ -408,7 +408,7 @@ reloadproc()
     # Find the basename of the first parameter (the daemon's name without
     # the path that was provided so /usr/sbin/syslogd becomes plain 'syslogd'
     # after basename ran).
-    base=$(/usr/bin/basename ${1})
+    base=$(basename ${1})
 
     # Check if we gave a signal to send to the process (like -HUP) to this
     # function (the second parameter). If no second parameter was provided set
@@ -482,7 +482,7 @@ statusproc_path()
     
     # Find the basename of the first parameter (the daemon's name without the
     # path).
-    base=$(/usr/bin/basename ${1})
+    base=$(basename ${1})
 
     piddir=${2}