aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-05-30 16:20:19 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-05-30 16:20:19 -0300
commit9591ed50b9335ea87432d1441756aa993fc14e45 (patch)
tree427d86e97f3c1ed63024b2b0adfca80694f7bc60 /share
parent69f7085e704b038ad092112a7c43959b6859790f (diff)
downloadhydra-9591ed50b9335ea87432d1441756aa993fc14e45.tar.gz
hydra-9591ed50b9335ea87432d1441756aa993fc14e45.tar.bz2
Check for wicd installation at sync-tpc
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/sync-tpc13
1 files changed, 9 insertions, 4 deletions
diff --git a/share/hydractl/sync-tpc b/share/hydractl/sync-tpc
index 429cf9e..2266a63 100755
--- a/share/hydractl/sync-tpc
+++ b/share/hydractl/sync-tpc
@@ -40,12 +40,17 @@ $SUDO rsync -av --delete --progress /var/cache/pbuilder/ $DEST/var/cache/pbuil
$SUDO rsync -av --delete --progress /var/chroot/ $DEST/var/chroot/
$SUDO rsync -av --delete --progress /var/lib/wicd/ $DEST/var/lib/wicd/
-# Sync config
-$SUDO mkdir -p /etc/wicd
+# Network config
$SUDO cp -a /etc/network/interfaces $DEST/etc/network/interfaces
-$SUDO cp -a /etc/wicd/manager-settings.conf $DEST/etc/wicd/manager-settings.conf
+$SUDO cp -a /etc/network/interfaces.d/* $DEST/etc/network/interfaces.d/
$SUDO cp -a /etc/udev/rules.d/70-persistent-net.rules $DEST/etc/udev/rules.d/70-persistent-net.rules
-$SUDO cp -a /etc/wicd/wireless-settings.conf $DEST/etc/wicd/wireless-settings.conf
+
+# Wicd
+if [ -e "/etc/wicd" ]; then
+ $SUDO mkdir -p $DEST/etc/wicd
+ $SUDO cp -a /etc/wicd/manager-settings.conf $DEST/etc/wicd/manager-settings.conf
+ $SUDO cp -a /etc/wicd/wireless-settings.conf $DEST/etc/wicd/wireless-settings.conf
+fi
# Sync media remotes
hydractl sync-media-remotes $MEDIA