Thanks for the input guys but still no love.
I first tried the /etc/network/if-up.d/fstabmount method. This is the contents
Code:
#!/bin/sh
sh /home/bob/smbmount.sh
contents of smbmount.sh
Code:
#!/bin/sh
iwconfig >> /home/bob/before
/bin/mount -t smbfs //xbmc_server/thumbs$ /thumbs >> /home/bob/error
echo works > /home/bob/message
iwconfig >> /home/bob/after
It looks a little different now due to some troubleshooting. I wanted to see the output of iwconfig before and after the mount attempt. Also I wanted to see that the script ran and see any errors the mount command might give. Both before and after were empty and error said network unreachable or something similar. The script does run.
Next I tried the rc.local approach.
Contents of rc.local
Code:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
echo USB0 > /proc/acpi/wakeup
sh /usr/src/asus-at3iont-i-deluxe-1.0.1/drivers/hid-philips-asus/load-module.sh
HOSTNAME="192.168.50.105"
while ! ping -q -c1 $HOSTNAME &>/dev/null; do
sleep 1
done
mount -a >> error
echo works2 >> /home/bob/message
exit 0
Again I slightly modified this to see if the script was running and because I removed autofs as part of my troubleshooting the previous method. The script is running as my remote modules are loading. "works2" never appears in the message file however. Perhaps the ping never completes and the code doesn't execute?
Here is the contents of fstab
Code:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb1 during installation
# UUID=a951fafd-6f31-4de9-a3a4-d7ca40e22486 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
# UUID=308fa216-6b45-401d-bbad-6c7e0e1cc2d2 none swap sw 0 0
//192.168.50.105/thumbs$ /thumbs smbfs guest,auto 0 0
The UUIDs are commented out to avoid error messages of missing disk during bootup. This install is a clone from a smaller usb stick. The UUIDs are off so I just commented them out. I was trying mount -a and a full mount command interchangeably with no results. I did comment out the entry in fstab when using the full mount command.
I also am seeing errors on the mount command by just entering mount -a in a terminal. this is the result:
Code:
Warning: mapping 'guest' to 'guest,sec=none'
error 22 detected on close of mtab
Just for completeness, my contents of /etc/hosts
Code:
127.0.0.1 localhost
127.0.1.1 XBMCLive
192.168.50.105 XBMC_SERVER
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
I'm quite clueless at this point and would really like to get this working. Any ideas what is happening?