From 67e1e751b6bfb4127999de021aa116e04046c17d Mon Sep 17 00:00:00 2001 From: Robert Alessi Date: Thu, 19 Dec 2019 20:13:59 +0100 Subject: test with -n (more portable) --- x200-my.initd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x200-my.initd b/x200-my.initd index 3601df0..400eaab 100644 --- a/x200-my.initd +++ b/x200-my.initd @@ -58,7 +58,7 @@ do_backup() { do_privacy() { if [ $enable_privacy = "true" ] then - if [[ $wired_interface && ${wired_interface-_} ]] + if [ -n "${wired_interface}" ] then rm -rf /etc/dhcpcd.duid /sbin/macchanger -r $wired_interface -- cgit v1.2.3