>From b6ccad7b2fcacbf53da6f130fddf1cf4e257640e Mon Sep 17 00:00:00 2001
From: Onkar N Mahajan <[email protected]>
Date: Tue, 24 Jan 2012 12:58:22 +0530
Subject: [PATCH] Fix - Symlink path for Autotest in SUSE. Signed-off-by:
Onkar N Mahajan <[email protected]>

---
client/bin/harness_standalone.py |    7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/client/bin/harness_standalone.py
b/client/bin/harness_standalone.py
index 4f07d22..3cfbed7 100644
--- a/client/bin/harness_standalone.py
+++ b/client/bin/harness_standalone.py
@@ -6,6 +6,7 @@ The default interface as required for the standalone
reboot helper.
__author__ = """Copyright Andy Whitcroft 2007"""

from autotest_lib.client.common_lib import utils, error
+from autotest_lib.client.bin import utils
import os, harness, shutil, logging

class harness_standalone(harness.harness):
@@ -47,8 +48,12 @@ class harness_standalone(harness.harness):
             initdefault = '2'

         try:
+            vendor = utils.get_os_vendor()
             service = '/etc/init.d/autotest'
-            service_link = '/etc/rc%s.d/S99autotest' % initdefault
+            if vendor == 'SUSE':
+               service_link = '/etc/init.d/rc%s.d/S99autotest' %
initdefault
+            else:
+               service_link = '/etc/rc%s.d/S99autotest' % initdefault
             if os.path.islink(service):
                 os.remove(service)
             if os.path.islink(service_link):
-- 
1.7.4.4


-- 
Onkar N Mahajan
System Software Engineer,
IBM Linux Technology Center, Bangalore - India

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to