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--- 9Upstream-Status: Pending 10 11 lib/wfa_cs.c | 4 ++-- 12 scripts/dev_send_frame | 2 +- 13 scripts/sta_reset_parm | 2 +- 14 3 files changed, 4 insertions(+), 4 deletions(-) 15 16diff --git a/lib/wfa_cs.c b/lib/wfa_cs.c 17index 6b1f5a2..2a18533 100644 18--- a/lib/wfa_cs.c 19+++ b/lib/wfa_cs.c 20@@ -319,7 +319,7 @@ int wfaStaGetIpConfig(int len, BYTE *caCmdBuf, int *respLen, BYTE *respBuf) 21 /* 22 * check a script file (the current implementation specific) 23 */ 24- ret = access("/usr/local/sbin/getipconfig.sh", F_OK); 25+ ret = access("/usr/sbin/getipconfig.sh", F_OK); 26 if(ret == -1) 27 { 28 ipconfigResp->status = STATUS_ERROR; 29@@ -2115,7 +2115,7 @@ int wfaStaPresetParams(int len, BYTE *caCmdBuf, int *respLen, BYTE *respBuf) 30 st = remove("/tmp/processid.txt"); 31 } 32 33- sprintf(cmdStr, "/usr/local/sbin/findprocess.sh %s /tmp/processid.txt\n", "wpa_supplicant"); 34+ sprintf(cmdStr, "/usr/sbin/findprocess.sh %s /tmp/processid.txt\n", "wpa_supplicant"); 35 st = system(cmdStr); 36 37 tmpfd = fopen("/tmp/processid.txt", "r+"); 38diff --git a/scripts/dev_send_frame b/scripts/dev_send_frame 39index 9e6afd3..3c37d61 100644 40--- a/scripts/dev_send_frame 41+++ b/scripts/dev_send_frame 42@@ -1,4 +1,4 @@ 43-#!/bin/bash 44+#!/usr/bin/env sh 45 46 # 47 # Copyright (c) 2016 Wi-Fi Alliance 48diff --git a/scripts/sta_reset_parm b/scripts/sta_reset_parm 49index 2aff1f1..2c1c31e 100644 50--- a/scripts/sta_reset_parm 51+++ b/scripts/sta_reset_parm 52@@ -1,4 +1,4 @@ 53-#!/bin/bash 54+#!/usr/bin/env sh 55 56 # 57 # Copyright (c) 2016 Wi-Fi Alliance 58-- 592.7.4 60 61