mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-06-14 11:07:20 +02:00
fix-networkmanager-iwd-selinux.bash: accidentally become oneliner find
The original script didn't handle spaces in SSIDs and then I noticed warning about find -exec being better than find in for which may be unreliable and after some manual reading I ended up with this.
This commit is contained in:
parent
da02c114ae
commit
0a9896314f
@ -4,7 +4,5 @@
|
||||
# permitted to unlink files.
|
||||
|
||||
set -x
|
||||
for targetfile in $(find /var/lib/iwd/*.{psk,open}); do
|
||||
semanage fcontext -a -t NetworkManager_etc_rw_t $targetfile
|
||||
done
|
||||
find /var/lib/iwd/*.{psk,open} -exec semanage fcontext -a -t NetworkManager_etc_rw_t '{}' \;
|
||||
set +x
|
||||
|
Loading…
x
Reference in New Issue
Block a user