PDA

Bekijk de volledige versie : Can't get post-mount or post-firewall scripts to work



metalpriest
30-07-2007, 02:37
Update: As soon as I posted this, the post-firewall script started working, but post-mount still isn't. Ideas?

I'm trying to get a script to run after the hd is mounted..or even at boot with Oleg's pre9 firmware, but nothing happens on boot.
here are my scripts
post-mount is
#!/bin/sh
echo foo > /tmp/postmount
swapon -a

and post-firewall is
#!/bin/sh
echo foo > /tmp/postfirewall
swapon -a

permissions are:
ls -l /usr/local/sbin/*
-rwxr-xr-x 1 admin root 46 Jul 29 18:30 /usr/local/sbin/post-firewall
-rwxr-xr-x 1 admin root 40 Jul 29 13:06 /usr/local/sbin/post-mount


The files in /tmp don't created and swap doesn't get activated on boot.
Any ideas on what i am missing? flashfs save/commit/enable makes the files persist, but the scripts don't get run at boot.

iGz
16-08-2008, 14:14
Hi,
I have same problem with post-mount :( So, in this point I can`t start any application from my hdd :(
Permissions are same, and flashfs commands was executed...
Any ideas ?

Thank You :)

// Now, everything is working fine. I made a mistake in post-mount script (didn`t start with #!/bin/sh, but with #/bin/sh. I missed "!"). Sorry if i was bothering you :)