Results 1 to 6 of 6
Discuss rc.local on the AppleTV at the AppleTV 1 - Hackint0sh.org; I can't get my AppleTV to execute an automount command from either my /etc/rc or ...
  1. #1
    Professional Array fishnchips's Avatar

    Join Date
    Mar 2007
    Location
    UK
    Posts
    62
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default rc.local on the AppleTV

    I can't get my AppleTV to execute an automount command from either my /etc/rc or /etc/rc.local

    These are the two commands I'm trying:

    su frontrow -c '/sbin/mount_afp afp://username:password@<IPAddress>/media /mnt/Server'

    su frontrow -c '/sbin/mount_nfs <IPAddress>:/Volumes/media /mnt/Server'

    I've tried without the su command as well. You can probably tell what I'm trying to do here. If I execute these manually, they work and if I sudo sh /etc/rc.local it works as well.

    Any ideas of:

    a> what's wrong?
    b> how I can troubleshoot the problem?

    Thanks in advance!
    Last edited by fishnchips; 04-17-2007 at 11:34 AM. Reason: typo and more info



  2. #2
    Newbie Array

    Join Date
    Mar 2007
    Posts
    6
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I found the plugin over on awkwardtv sorted all my problems out, its easy to use and works well...

    http://plugins.awkwardtv.org/det.php?recordID=vfxshare

  3. #3
    Professional Array fishnchips's Avatar

    Join Date
    Mar 2007
    Location
    UK
    Posts
    62
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    Perfect - did the trick. It does bother me a bit why I couldn't get rc.local working but I'll probably get over it....

  4. #4
    Newbie Array pheno's Avatar

    Join Date
    Apr 2007
    Posts
    8
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    hi fishnchips.

    I would suggest to redirect STDOUT and ERROUT to a file and then you'll see what's wrong with it.
    gtx,
    pheno
    If you pay peanuts, you get monkeys.

  5. #5
    Newbie Array

    Join Date
    Apr 2007
    Posts
    7
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by pheno View Post
    hi fishnchips.

    I would suggest to redirect STDOUT and ERROUT to a file and then you'll see what's wrong with it.
    gtx,
    pheno
    And how do we do that? I couldn't find an example how to do that, only alot of programming examples.
    The ATVSharemounter didn't work for me probably because i don't use a user name or password on my NAS.


  6. #6
    Rookie Array

    Join Date
    Apr 2007
    Posts
    12
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I'm having the same problem. I've tried using numerous commands mount_afp, mount and it doesnt work.

    Adding 2> filename to the end of the line in the rc.local file will output stderr to a file. When i try this I get the usual rubbish about /mach and kextload: and at the end it says: "mount_afp: AFPMountURL returned error -1069, errno is -1069" which is obviously why its not working.

    When the ATV have finished booting if i run the exact same command manually it mounts without a problem.

    Anyone got any ideas? Or perhaps a better explanation of how aTV-sharemounter works and what goes in the xml file?

    Thanks

 

 

Similar Threads

  1. AppleTV OS dd image required - broken appletv
    By mingerz in forum AppleTV 1
    Replies: 5
    Last Post: 08-16-2009, 05:18 AM
  2. Replies: 0
    Last Post: 09-14-2007, 05:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 09:51 PM.
twitter, follow us!