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 ...
-
Professional
Array
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
-
-
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
-
-
Professional
Array
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....
-
Newbie
Array
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.
-
-

Originally Posted by
pheno
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.
-
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
-
By mingerz in forum AppleTV 1
Replies: 5
Last Post: 08-16-2009, 05:18 AM
-
Replies: 0
Last Post: 09-14-2007, 05:50 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks