aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/sync-tpc
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-11-08 15:06:43 -0200
committerSilvio Rhatto <rhatto@riseup.net>2016-11-08 15:06:43 -0200
commit2d3a2cd3d01e43c6e3c1a6eebad26bdf2a422d5a (patch)
tree03e05bd4354d27af213c722647b78f427b4a6a33 /share/hydractl/sync-tpc
parent5fda688cf3676d64ee2cfa65902d4523e52c6eeb (diff)
downloadhydra-2d3a2cd3d01e43c6e3c1a6eebad26bdf2a422d5a.tar.gz
hydra-2d3a2cd3d01e43c6e3c1a6eebad26bdf2a422d5a.tar.bz2
Initial logic for a sync-media-remotes
Diffstat (limited to 'share/hydractl/sync-tpc')
-rwxr-xr-xshare/hydractl/sync-tpc4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/hydractl/sync-tpc b/share/hydractl/sync-tpc
index ae1cd0b..bdedf35 100755
--- a/share/hydractl/sync-tpc
+++ b/share/hydractl/sync-tpc
@@ -6,6 +6,7 @@
# Parameters
BASENAME="$0"
DEST="$1"
+MEDIA="/var/cache/media"
# Syntax
if [ -z "$DEST" ]; then
@@ -40,3 +41,6 @@ $SUDO rsync -av --delete /var/lib/wicd/ $DEST/var/lib/wicd/
$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/udev/rules.d/70-persistent-net.rules $DEST/etc/udev/rules.d/70-persistent-net.rules
+
+# Sync media remotes
+hydractl sync-media-remotes $DEST