where is my bash script?

563 views
Skip to first unread message

Thomas Moersch

unread,
Jun 15, 2014, 10:37:47 PM6/15/14
to al...@googlegroups.com
I realize now that /root is only temporary until the next reboot.  I lost a pretty nice bash script.  Well, my own fault. I should have known better.  The root file system is a temp mount.
The question is this:
  - Where can I create custom scripts that will be accessible after a reboot?

I guess I could create a file system on one of the raided devices but that does not seem very elegant.
I noticed that the cron job is still there after the reboot. (... only the job it's pointing to is gone.)
Is /etc the place to put custom scripts?
I could make it /etc/bin/

Thanks in advance.

Thomas

João Cardoso

unread,
Jun 16, 2014, 12:53:32 PM6/16/14
to al...@googlegroups.com


On Monday, June 16, 2014 3:37:47 AM UTC+1, Thomas Moersch wrote:
I realize now that /root is only temporary until the next reboot.  I lost a pretty nice bash script.  Well, my own fault. I should have known better.  The root file system is a temp mount.
The question is this:
  - Where can I create custom scripts that will be accessible after a reboot?

As Alt-F is not disk-based (it's stored and runs from flash-memory), you have to use the disk.
A small set of configuration files (the "settings") are also stored in flash-memory. For RC4 the list of files to store in flash memory can be extended, but as there are only 65KB (yes, KiloBytes) of flash-memory available for settings, you will have to be cautious.
 

I guess I could create a file system on one of the raided devices but that does not seem very elegant.
I noticed that the cron job is still there after the reboot.

Yes, *root* cronjobs are saved in "settings".
There is already the possibility of running a (disk-resident) script at boot time, Services->user, Configure.

Thomas Moersch

unread,
Jun 16, 2014, 3:03:08 PM6/16/14
to al...@googlegroups.com
Thank you, João.
I will use space on md0.  I created a little rsync job to back up all the photos stored on the NAS to an attached usb storage device.


--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/alt-f/f47a9cd8-d700-45e8-b3fd-95de47a7d7fb%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages