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.
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.