Hi all

This is my bootlocal.sh


Code:
--------------------
    #!/bin/sh
  # put other system startup commands here
  
  GREEN="$(echo -e '\033[1;32m')"
  
  echo
  echo "${GREEN}Running bootlocal.sh..."
  #pCPstart------
  /home/tc/www/cgi-bin/pcp_startup.sh 2>&1 | tee -a /var/log/pcp_boot.log
  #pCPstop------
  
  mkdir /mnt/timecapsule
  echo "# Timecapsule via Samba" | sudo tee -a /etc/fstab
  echo "//10.0.1.1/Data/Musik /mnt/timecapsule cifs 
username=***,password=***,sec=ntlm,ro,noauto,iocharset=utf8 0 0" | sudo tee -a 
/etc/fstab
  
--------------------


However; /mnt/timecapsule and the entry in fstab are not created. I used
the commands in an older version of Picoreplayer but in my version 5 it
does not work. When I call 
Code:
--------------------
    sudo ./bootlocal.sh
--------------------
 from the terminal it creates the folder and the entry in fstab. 

Could it be that bootlocal.sh is not initiated on startup?


------------------------------------------------------------------------
ElEsido's Profile: http://forums.slimdevices.com/member.php?userid=50767
View this thread: http://forums.slimdevices.com/showthread.php?t=110642

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to