aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2022-01-02 17:04:47 -0300
committerSilvio Rhatto <rhatto@riseup.net>2022-01-02 17:04:47 -0300
commit86f81339303d50696b37ccf92316811e66094110 (patch)
tree6d5eb15fbbef19335882eb4bb6e9892c20d6bdf0
parentf4ca036eec840d135c74be97e9cc594569d6c32d (diff)
downloadhydra-86f81339303d50696b37ccf92316811e66094110.tar.gz
hydra-86f81339303d50696b37ccf92316811e66094110.tar.bz2
Feat: sync-tpc: copy NetworkManager profiles
-rwxr-xr-xshare/hydractl/sync-tpc6
1 files changed, 6 insertions, 0 deletions
diff --git a/share/hydractl/sync-tpc b/share/hydractl/sync-tpc
index 8a4d2dc..0c8b177 100755
--- a/share/hydractl/sync-tpc
+++ b/share/hydractl/sync-tpc
@@ -55,6 +55,12 @@ if [ -d "/etc/wicd" ]; then
$SUDO cp -a /etc/wicd/wireless-settings.conf $DEST/etc/wicd/wireless-settings.conf
fi
+# Network Manager
+if [ -d "/etc/NetworkManager/system-connections" ]; then
+ $SUDO mkdir -p $DEST/etc/NetworkManager/system-connections
+ $SUDO rsync -av --delete /etc/NetworkManager/system-connections/ $DEST/etc/NetworkManager/system-connections/
+fi
+
# Ensure the media folder exist
if [ ! -d "$MEDIA" ]; then
$SUDO mkdir -p $MEDIA