Modify NAS Installer to work correctly

Other OS or NAS discussions
ondrovic
Posts: 9
Joined: Mon Feb 21, 2011 2:14 pm
AV Hardware: Sony Bravia KDL46XBR
Sony PS3
Logitech Revue
Netgear Digital Entertainer Live

Modify NAS Installer to work correctly

Postby ondrovic » Thu Mar 03, 2011 12:15 am

I have a Buffalo Link Station and I want to upgrade the version of twonky from 4.4.2 to 6.3.0. Currently the version of twonky that came on the NAS is installed /usr/local/twonky

Now I modified the install.nas to point to /usr/local/twonky

Any ideas of what modifications need to be made to the nas-uninstaller in order to delete the current version? Or can I just manually delete the folder from the drive?

Also is there any way to not have the installer setup the /mnt/twonkymedia ?

Any help would be greatly appreciated

ondrovic
Posts: 9
Joined: Mon Feb 21, 2011 2:14 pm
AV Hardware: Sony Bravia KDL46XBR
Sony PS3
Logitech Revue
Netgear Digital Entertainer Live

Re: Modify NAS Installer to work correctly

Postby ondrovic » Thu Mar 03, 2011 12:24 am

Is this where it sets the /mnt/twonkymedia upon installing?

Code: Select all

if [ "${DIR}" = "AUTOMATIC" ] ; then
    echo checking attached USB drives...
    # NSLU2, check available disk and change DIR to the first available
    df|grep -q /share/hdd/data/HDD_1_1_1
    if [ "$?" = "0" ] ; then
   DIR=/share/hdd/data/HDD_1_1_1/twonkymedia
    else
   df|grep -q /share/flash/data/HDD_2_1_1
   if [ "$?" = "0" ] ; then
       DIR=/share/flash/data/HDD_2_1_1/twonkymedia
   else
       df|grep -q /share/hdd/data
       if [ "$?" = "0" ] ; then
      DIR=/share/hdd/data/twonkymedia
       else
      df|grep -q /share/flash/data
      if [ "$?" = "0" ] ; then
          DIR=/share/flash/data/twonkymedia
      else
          echo "could not install twonkymedia, no USB drive found"
          echo
          echo "nas-installer exit"
         exit
      fi
       fi
   fi
    fi
    echo "DIR ${DIR}"
fi


So if I commented out the code would it then not install the default twonkymedia folder under /mnt


Return to “NAS and other OS”

Who is online

Users browsing this forum: No registered users and 2 guests

cron