diff options
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/sync-tpc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/share/hydractl/sync-tpc b/share/hydractl/sync-tpc index 1f38b32..09c4adc 100755 --- a/share/hydractl/sync-tpc +++ b/share/hydractl/sync-tpc @@ -8,7 +8,7 @@ BASENAME="$0" TPC="$1" DEST="/media/$1" MEDIA="$DEST/var/cache/$TPC/media" -RSYNC="ionice -c 3 nice -n 19 rsync -av --delete --progress --stats" +RSYNC="ionice -c 3 nice -n 19 rsync -av --delete --progress" # Syntax if [ -z "$TPC" ]; then @@ -42,11 +42,14 @@ $SUDO $RSYNC /var/chroot/ $DEST/var/chroot/ $SUDO $RSYNC /var/lib/wicd/ $DEST/var/lib/wicd/ # Network config -mkdir -p /etc/network/interfaces.d $SUDO cp -a /etc/network/interfaces $DEST/etc/network/interfaces -$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 +# Custom network config +if [ -e '/etc/network/interfaces.d/' ]; then + $SUDO $RSYNC /etc/network/interfaces.d/ $DEST/etc/network/interfaces.d/ +fi + # Wicd if [ -d "/etc/wicd" ]; then $SUDO mkdir -p $DEST/etc/wicd |