components/quagga/patches/90-checkdaemon.patch
author Brian Utterback <brian.utterback@oracle.com>
Fri, 03 Mar 2017 10:53:19 -0800
branchs11u3-sru
changeset 7929 27eab5dcdc0b
permissions -rw-r--r--
24850514 Check for empty DAEMON in quagga start method never fails.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7929
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     1
This bug has been submitted to the Quagga community as bug
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     2
https://bugzilla.quagga.net/show_bug.cgi?id=878
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     3
This patch may be removed after upgrading to a version of Quagga with
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     4
bug 878 fixed.
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     5
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     6
*** solaris/quagga.init.in
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     7
--- solaris/quagga.init.in
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     8
*************** QUAGGA_METHOD="start"
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
     9
*** 127,133 ****
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    10
  DAEMON="$1"
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    11
  
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    12
  # daemon path must be given
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    13
! if [ -z "$DAEMON_PATH/$DAEMON" ]; then
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    14
  	usage
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    15
  	exit $SMF_EXIT_ERR_FATAL
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    16
  fi
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    17
--- 127,133 ----
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    18
  DAEMON="$1"
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    19
  
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    20
  # daemon path must be given
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    21
! if [ "$DAEMON_PATH/$DAEMON" = "/" ]; then
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    22
  	usage
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    23
  	exit $SMF_EXIT_ERR_FATAL
27eab5dcdc0b 24850514 Check for empty DAEMON in quagga start method never fails.
Brian Utterback <brian.utterback@oracle.com>
parents:
diff changeset
    24
  fi