[pisa-src] r911 - in trunk: pisacd pisasd

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 02 Sep 2009 16:29:29 +0200

Author: biurrun
Date: Wed Sep  2 16:29:29 2009
New Revision: 911

Log:
Drop pointless 'function' keyword from function declarations (it is a bashism).

Modified:
   trunk/pisacd/check_hipd.sh
   trunk/pisasd/check_hipd.sh

Modified: trunk/pisacd/check_hipd.sh
==============================================================================
--- trunk/pisacd/check_hipd.sh  Wed Sep  2 16:08:52 2009        (r910)
+++ trunk/pisacd/check_hipd.sh  Wed Sep  2 16:29:29 2009        (r911)
@@ -5,7 +5,7 @@
 
 # hipd is running only, when lockfile exists and the process id is
 # active - in all other cases, we assume it isn't running!
-function hipd_running {
+hipd_running {
        if [ -e $HIPD_LOCKFILE ] # lockfile exits?
        then
                PID=`cat $HIPD_LOCKFILE` # process id is in lockfile
@@ -18,7 +18,7 @@
 }
 
 # check for the hipd, if he is not running start it
-function run_hipd_if_not_running {
+run_hipd_if_not_running {
                if hipd_running
                then
                        echo "hipd already running...";

Modified: trunk/pisasd/check_hipd.sh
==============================================================================
--- trunk/pisasd/check_hipd.sh  Wed Sep  2 16:08:52 2009        (r910)
+++ trunk/pisasd/check_hipd.sh  Wed Sep  2 16:29:29 2009        (r911)
@@ -5,7 +5,7 @@
 
 # hipd is running only, when lockfile exists and the process id is
 # active - in all other cases, we assume it isn't running!
-function hipd_running {
+hipd_running {
        if [ -e $HIPD_LOCKFILE ] # lockfile exits?
        then
                PID=`cat $HIPD_LOCKFILE` # process id is in lockfile
@@ -18,7 +18,7 @@
 }
 
 # check for the hipd, if he is not running start it
-function run_hipd_if_not_running {
+run_hipd_if_not_running {
                if hipd_running
                then
                        echo "hipd already running...";

Other related posts:

  • » [pisa-src] r911 - in trunk: pisacd pisasd - Diego Biurrun