Sign up here and you can log into the forum!

powerdown events / ash_history

The place for n00b questions, anything n00b too n00bish.

powerdown events / ash_history   

Postby davo_x1 » Fri Sep 16, 2016 11:53 am

It seems that I am not able to keep the ash_history persistent when I reboot.

I followed the setup described on: ... nt_history

and I added the 2 commands to store and restore the history.

Code: Select all
config_tool -c POWER_DOWN_ACTION10='cp /tmp/.ash_history "/tmp/mnt/3d93e48f-8d8d-4cf1-91de-71f790cd87fd/.ash_history"'

Saved the config. But then after a reboot it seems that the ash_history is never in the external disk.

I am currently using version:

Code: Select all
FW Base: 1.05.04
Current version:

I have also the autobackup app installed and this one seems that is able to generate its configuration backup. This one is using the configuration:
Code: Select all

however having this two simple power down events, does not make any output file on the external HD
Code: Select all
POWER_DOWN_ACTION12='date >> "/tmp/mnt/3d93e48f-8d8d-4cf1-91de-71f790cd87fd/1"'
POWER_DOWN_ACTION13='date >> "/tmp/media/usb/USB1/3d93e48f-8d8d-4cf1-91de-71f790cd87fd/2"'

Am I missing something here ?
Posts: 10
Joined: Thu Dec 01, 2011 3:41 am

Re: powerdown events / ash_history   

Postby mad_ady » Sun Sep 18, 2016 11:02 pm

If you run:
Code: Select all
ls -l /tmp/mnt/3d93e48f-8d8d-4cf1-91de-71f790cd87fd/

do you get output (just checking)?

I think there was a way to manually run the power down events, but I forgot how... Maybe by running command. It should display error messages onscreen. Alternatively you could pipe error log to somewhere in /tmp and look at it:
Code: Select all
POWER_DOWN_ACTION12='date >> "/tmp/mnt/3d93e48f-8d8d-4cf1-91de-71f790cd87fd/1 2>/tmp/power_down_error"'
User avatar
Posts: 4562
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Return to n00b central

Who is online

Users browsing this forum: No registered users and 6 guests