From 168bfa3a86b5488be719f0b1f0005061db705187 Mon Sep 17 00:00:00 2001 From: milisbir Date: Sun, 31 Dec 2017 20:16:06 +0200 Subject: [PATCH] mpsd-busybox --- bin/mpsd | 2 +- bin/which | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 bin/which diff --git a/bin/mpsd b/bin/mpsd index 875dedde7..ca9b901e4 100755 --- a/bin/mpsd +++ b/bin/mpsd @@ -11,7 +11,7 @@ E_FOOTPRINT=7 # footprint check failure E_BUILD=8 # error while running 'derle()' E_INSTALL=9 # paket kurulum hatası (mps -k) -_gnuwget= `wget | head -n1 | grep "Busybox"` +_gnuwget=$(readlink -f `which wget` | grep "busybox") if [ "${_gnuwget}x" == "x" ];then wget_sertifika_ayar="--no-check-certificate" wget_retry="--waitretry=3" diff --git a/bin/which b/bin/which new file mode 100755 index 000000000..82131feb3 --- /dev/null +++ b/bin/which @@ -0,0 +1,2 @@ +#!/bin/sh +type -pa "$@" | head -n 1 ; exit ${PIPESTATUS[0]}