aboutsummaryrefslogtreecommitdiff
path: root/x200-my.initd
diff options
context:
space:
mode:
authorRobert Alessi <alessi@robertalessi.net>2019-12-19 20:13:59 +0100
committerRobert Alessi <alessi@robertalessi.net>2019-12-19 20:13:59 +0100
commit67e1e751b6bfb4127999de021aa116e04046c17d (patch)
treee59b17d64f0273b8d131f5df1b5409cb73e5c517 /x200-my.initd
parente3daf7696cfc2d12f608c99fab80ed6df3b34925 (diff)
downloadx200-my-67e1e751b6bfb4127999de021aa116e04046c17d.tar.gz
test with -n (more portable)
Diffstat (limited to 'x200-my.initd')
-rw-r--r--x200-my.initd2
1 files changed, 1 insertions, 1 deletions
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() {
58do_privacy() { 58do_privacy() {
59 if [ $enable_privacy = "true" ] 59 if [ $enable_privacy = "true" ]
60 then 60 then
61 if [[ $wired_interface && ${wired_interface-_} ]] 61 if [ -n "${wired_interface}" ]
62 then 62 then
63 rm -rf /etc/dhcpcd.duid 63 rm -rf /etc/dhcpcd.duid
64 /sbin/macchanger -r $wired_interface 64 /sbin/macchanger -r $wired_interface