logo       

Re: Scipt Help on NSLU2 for Twonkyvision: msg#00290

misc.nslu2.linux

Subject: Re: Scipt Help on NSLU2 for Twonkyvision



Problem solved.... I re-flashed the NSLU2 and the script worked.


--- In nslu2-linux-hHKSG33TihhbjbujkaE4pw@xxxxxxxxxxxxxxxx, "tjoost"
<Thomas.Joost@xxxx> wrote:
>
> My Unix proficiency is from ten years ago so I am a little rusty and
> need some help with installing TV on the NSLU2 using the new script
> that was just posted on the TV website
> (http://www.twonkyvision.de/UPnP/nslu2-install.zip).
>
> This is the script:
>
> =======================================
>
> if [ ! -e /opt/etc ] ; then mkdir /opt/etc ; fi
> if [ ! -e /opt/etc/init.d ] ; then mkdir /opt/etc/init.d ; fi
> if [ ! -e /share/flash/data/mediaserver ]
> then
> echo no mediaserver found on USB stick, terminating
> exit
> else
> cp /share/flash/data/mediaserver /opt
> chmod +x /opt/mediaserver
> fi
> cat << EOF > /opt/etc/init.d/S99mediaserver
> /bin/mount -t vfat /dev/sda1 /share/hdd/data > /dev/null
> /bin/mount -t vfat /dev/sdb1 /share/flash/data > /dev/null
> chdir /opt
> /opt/mediaserver -D
> EOF
> chmod +x /opt/etc/init.d/S99mediaserver
> # initial customization
> cat << EOF > /opt/twonkyvision-mediaserver.ini
> contentdir=/share
> friendlyname=My NSLU2
> enableweb=2
> EOF
>
> =======================================
>
> Here is what happens when I run the script:
>
> =======================================
>
> LKG7CC224 login: root
> Password:
> No directory, logging in with HOME=/
>
>
> BusyBox v0.60.4 (2004.07.01-03:05+0000) Built-in shell (ash)
> Enter 'help' for a list of built-in commands.
>
> # ls
> bin dev dev.state etc home
> lib linuxrc lost+found mnt opt
> opt.old proc sbin share tmp
> upload usr var var.state
> # cd opt
> cd: can't cd to opt
> # /share/flash/data/install-on-nslu2.sh
> mkdir: Cannot create directory `/opt/etc': Not a directory
> mkdir: Cannot create directory `/opt/etc/init.d': Not a directory
> chmod: /opt/mediaserver: Not a directory
> /share/flash/data/install-on-nslu2.sh: cannot create
> /opt/etc/init.d/S99mediaser
> ver: Not a directory
> chmod: /opt/etc/init.d/S99mediaserver: Not a directory
> /share/flash/data/install-on-nslu2.sh: cannot create
> /opt/twonkyvision-mediaserv
> er.ini: Not a directory
> #
> =======================================
>
> It looks like a permission issue, but I am too rusty to tell for sure.
> Any ideas? Thanks.
>
> Thomas





[ Moderator Note: All static information is slowly moving to the Wiki at
http://www.nslu2-linux.org ]


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise