Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
beta-tester committed Mar 10, 2019
1 parent c4742dc commit c1e42a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install-pxe-server_pass2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ DAEMON_CONF=\"/etc/hostapd/hostapd.conf\"
EOF";
}

sudo systemctl restart hostapd.service;
sudo systemctl unmask hostapd;
sudo systemctl enable hostapd;
sudo systemctl restart hostapd;
}
}

Expand Down

2 comments on commit c1e42a2

@ijash
Copy link

@ijash ijash commented on c1e42a2 Mar 11, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wouldn't it be better if it's in a try-catch or if block? so you don't have to delete the sudo systemctl restart hostapd.service;

@beta-tester
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for your comment...

what do you mean with

so you don't have to delete...

do i delete something with that command?

you mean i should check it hostapd is masked an disabled, and ony when it is i should to unmasking an enabling?
how can/should i check this?

PS.: in the script i add a comment to some configuration files. and only when that comment does not exist, i run those commands... so in normal case those commands will be run only one single time.
and i assume that the script will be run on a virgine clean raspbian installation so the very first time hostspd is masked and disabled on... isn't it.

Please sign in to comment.