mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-06-14 19:17:21 +02:00
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.
9 lines
229 B
Bash
Executable File
9 lines
229 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# This script should resolve SELINUX warnings about NetworkManager not
|
|
# permitted to unlink files.
|
|
|
|
set -x
|
|
find /var/lib/iwd/*.{psk,open} -exec semanage fcontext -a -t NetworkManager_etc_rw_t '{}' \;
|
|
set +x
|