yostinso

New Members
  • Posts

    1
  • Joined

  • Last visited

yostinso's Achievements

New User

New User (1/3)

  1. I figured out a fix for this that actually makes the UI work: Install the app via the WD web interface as normal. Enable SSH and connect, then: cd /mnt/HD/HD_a2/Nas_Prog/BitTorrentSync/cat <<EOF > start.sh#!/bin/shINSTALL_PATH=$1. $INSTALL_PATH/common.sh#ensure fixup unaligned accessif [[ "$(uname -m)" = "armv5tel" ]] ; thenecho 2 > /proc/cpu/alignmentfi#start daemondebug_log "Starting $INSTALL_PATH/$PRODUCT_BINARY_PATH"#chown -R admin $INSTALL_PATH#chmod 666 /dev/random#chmod 666 /dev/urandom#sudo -u admin sh -c "umask 000;$INSTALL_PATH/$PRODUCT_BINARY_PATH --config $INSTALL_PATH/$CONFIG_DIR_NAME/sync.conf"$INSTALL_PATH/$PRODUCT_BINARY_PATH --config $INSTALL_PATH/$CONFIG_DIR_NAME/sync.confRESULT=$?debug_log "Start result $RESULT"#cmd on start daemondebug_log "Exiting start"EOFcat <<EOF > stop.sh#!/bin/sh. $1/common.sh#stop daemonpkill -e -F /var/run/btsync.pid#cmd on stop daemondebug_log "Exiting stop"EOF This will update the start.sh and stop.sh scripts controlled by the web interface's ON/OFF slider. The acutal changes are pretty small: comment out the chown/chmod, and run btsync as root instead of admin (since the admin user apparently doesn't exist on the most recent WD firmware). After this, you should be able to toggle the slider OFF/ON in the WD interface and then click the Configure button to connect to the Sync web interface. If you want to update the default config before launching the web UI, edit /mnt/HD/HD_a2/Nas_Prog/BitTorrentSync/settings/sync.conf using vi, or paste into it with cat > /mnt/HD/HD_a2/Nas_Prog/BitTorrentSync/settings/sync.conf# (finish with a newline and then Ctrl-D)I have been trying to figure oute how to use the package builder for the .bin file, which seems to be based on the D-Link ShareCenter SDK so that I can make the process more seamless, but the above works for now. Hope this helps someone!