3

I need to run sudo mount -a after boot since auto mount of the share doesn't happen as needed (/etc/fstab contains the right code for that ).

How can I do this on Jessie Pixel?

Darth Vader
  • 4,218
  • 24
  • 47
  • 70
guyd
  • 588
  • 3
  • 13
  • 28

2 Answers2

3

Write a systemd or init service that does what you want.

you can also use cron by running:

sudo crontab -e 

Then:

@reboot /my/special/script.sh

Don't forget to chmod the script (chmod 744). This should run your script once after reboot.

Tychus
  • 112
  • 2
  • 10
0

Answered in another thread. I is all about timing

https://raspberrypi.stackexchange.com/a/33607/68038

guyd
  • 588
  • 3
  • 13
  • 28