1From fc7b7106dd0d8d123f20cbd8d408637fbc315e17 Mon Sep 17 00:00:00 2001 2From: Ankit Navik <ankit.tarot@gmail.com> 3Date: Tue, 25 Dec 2018 01:12:32 +0530 4Subject: [PATCH 3/3] fix path to /usr/sbin for script and make script for 5 generic shell 6 7Signed-off-by: Ankit Navik <ankit.tarot@gmail.com> 8--- 9 lib/wfa_cs.c | 4 ++-- 10 scripts/dev_send_frame | 2 +- 11 scripts/sta_reset_parm | 2 +- 12 3 files changed, 4 insertions(+), 4 deletions(-) 13 14diff --git a/lib/wfa_cs.c b/lib/wfa_cs.c 15index 6b1f5a2..2a18533 100644 16--- a/lib/wfa_cs.c 17+++ b/lib/wfa_cs.c 18@@ -319,7 +319,7 @@ int wfaStaGetIpConfig(int len, BYTE *caCmdBuf, int *respLen, BYTE *respBuf) 19 /* 20 * check a script file (the current implementation specific) 21 */ 22- ret = access("/usr/local/sbin/getipconfig.sh", F_OK); 23+ ret = access("/usr/sbin/getipconfig.sh", F_OK); 24 if(ret == -1) 25 { 26 ipconfigResp->status = STATUS_ERROR; 27@@ -2115,7 +2115,7 @@ int wfaStaPresetParams(int len, BYTE *caCmdBuf, int *respLen, BYTE *respBuf) 28 st = remove("/tmp/processid.txt"); 29 } 30 31- sprintf(cmdStr, "/usr/local/sbin/findprocess.sh %s /tmp/processid.txt\n", "wpa_supplicant"); 32+ sprintf(cmdStr, "/usr/sbin/findprocess.sh %s /tmp/processid.txt\n", "wpa_supplicant"); 33 st = system(cmdStr); 34 35 tmpfd = fopen("/tmp/processid.txt", "r+"); 36diff --git a/scripts/dev_send_frame b/scripts/dev_send_frame 37index 9e6afd3..3c37d61 100644 38--- a/scripts/dev_send_frame 39+++ b/scripts/dev_send_frame 40@@ -1,4 +1,4 @@ 41-#!/bin/bash 42+#!/usr/bin/env sh 43 44 # 45 # Copyright (c) 2016 Wi-Fi Alliance 46diff --git a/scripts/sta_reset_parm b/scripts/sta_reset_parm 47index 2aff1f1..2c1c31e 100644 48--- a/scripts/sta_reset_parm 49+++ b/scripts/sta_reset_parm 50@@ -1,4 +1,4 @@ 51-#!/bin/bash 52+#!/usr/bin/env sh 53 54 # 55 # Copyright (c) 2016 Wi-Fi Alliance 56-- 572.7.4 58 59