[OpenWrt-Devel] init script runs after S99sysctl?

2013-12-01 Thread Le Tran Dat
Hi all, I am trying to run a script after the S99sysctl. I tried to use START=100 but it does not work. I don't want to extent the sysctl to call my script. for example: cat /etc/init.d/myscript.sh start /etc/init.d/sysctl I want to do so because my application needs to change iptables

Re: [OpenWrt-Devel] init script runs after S99sysctl?

2013-12-01 Thread Le Tran Dat
Hi Aleksandr, Many thanks for your help, I added my script to /etc/rc.local and it works like a cham. I haven't known about this script before. I don't know this too, I will check it later. or if you need change iptables everytime after some interface (ex WAN) going up, you can easily create

Re: [OpenWrt-Devel] init script runs after S99sysctl?

2013-12-01 Thread John Crispin
On 02/12/13 08:02, Le Tran Dat wrote: Hi Aleksandr, Many thanks for your help, I added my script to /etc/rc.local and it works like a cham. I haven't known about this script before. I don't know this too, I will check it later. or if you need change iptables everytime after some interface

Re: [OpenWrt-Devel] init script runs after S99sysctl?

2013-12-01 Thread Aleksandr Kolesnik
http://wiki.openwrt.org/doc/techref/hotplug 2013/12/2 John Crispin j...@phrozen.org On 02/12/13 08:02, Le Tran Dat wrote: Hi Aleksandr, Many thanks for your help, I added my script to /etc/rc.local and it works like a cham. I haven't known about this script before. I don't know this

Re: [OpenWrt-Devel] Init Script

2013-03-09 Thread Sivateja Patibandla
Development List openwrt-devel@lists.openwrt.org Subject: Re: [OpenWrt-Devel] Init script Message-ID: ca+lehhgpjfmnlwrey8+rjkic95_kjbst4hvrflhnmi-dotr...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi Bastian, Thank you for the information. I enabled paging of anonymous

Re: [OpenWrt-Devel] Init Script

2013-03-09 Thread Bastian Bittorf
* Sivateja Patibandla patibandl...@vcu.edu [09.03.2013 21:58]: I've added CONFIG_SWAP=y to trunk/target/linux/atheros/config3.3 and I still can't see zram in the base system. Am I missing something? unsure, what the specific problem is, just run 'make kernel_menuconfig' and activate it. bye,

Re: [OpenWrt-Devel] Init script

2013-03-07 Thread Sivateja Patibandla
Hi Bastian, Thank you for the information. I enabled paging of anonymous memory option and now I'm able to see the swap memory being used. But the system still freezes at least 40% of the times I tested. It freezes in the first 5 min of the boot up or it will never freeze. I also see that most

Re: [OpenWrt-Devel] Init script

2013-03-07 Thread Bastian Bittorf
* Sivateja Patibandla patibandl...@vcu.edu [08.03.2013 08:12]: But the system still freezes at least 40% of the times I tested. It freezes we also see freezes on all our atheros nodes, at least once a day, no matter if swap is used or not (we have some 32mb nodes also). problems. Does it

Re: [OpenWrt-Devel] Init script

2013-03-06 Thread Sivateja Patibandla
Hi Bastian, I tried the revisions 35863-35865 but I can't see zram under make menuconfig-base system when the Target System is Atheros AR231X. Zram option shows up for the target system AR7XXX but I'm working with AR231X. Any comments or suggestions? Regards, Siva. On Sun, Mar 3, 2013 at 3:39

Re: [OpenWrt-Devel] Init script

2013-03-06 Thread Sivateja Patibandla
Bastian, When I do swapon -p 0 /dev/zram0. I get the following output. swapon: /dev/zram0: Function not implemented. I tried selecting kernel modules-[*] kmod-ramzswap and see if it makes any difference. But it still does not show up in free. The output of free is as follows.

Re: [OpenWrt-Devel] Init script

2013-03-03 Thread Bastian Bittorf
* Sivateja Patibandla patibandl...@vcu.edu [03.03.2013 20:26]: I've tried zram and it still has the same problem. I've enabled it by following the procedure listed in http://patchwork.openwrt.org/patch/1609/. Any other comments or suggestions? Thank you. forget the patch in patchwork, it's

Re: [OpenWrt-Devel] Init script

2013-03-02 Thread Sivateja Patibandla
Hi Bastian, I've tried zram and it still has the same problem. I've enabled it by following the procedure listed in http://patchwork.openwrt.org/patch/1609/. Any other comments or suggestions? Thank you. Regards, Siva. On Wed, Feb 27, 2013 at 3:58 AM, Bastian Bittorf

Re: [OpenWrt-Devel] Init script

2013-02-27 Thread Bastian Bittorf
* Sivateja Patibandla patibandl...@vcu.edu [27.02.2013 09:55]: Thank you for replying. I don't have zram enabled. Did zram solve the enable zram, than recheck if this solves your problem, but likely it does. Although, I've an init script for watchdog in rc.d directory, it does not show up

Re: [OpenWrt-Devel] Init script

2013-02-26 Thread Sivateja Patibandla
Hi Bastian, Thank you for replying. I don't have zram enabled. Did zram solve the problem for you? Also, could you figure out the reason for hang up on boot up? Although, I've an init script for watchdog in rc.d directory, it does not show up on ps -w list after boot up. The last priority in my

[OpenWrt-Devel] Init script

2013-02-19 Thread Sivateja Patibandla
Hi Guys, I'm trying to setup an init script to run a userspace application. In the script I have START=99. It starts the application fine but after few minutes the operating system would not respond at all. Not even serial terminal. Sometimes it hangs even before launching the application. The

Re: [OpenWrt-Devel] Init script

2013-02-19 Thread Bastian Bittorf
* Sivateja Patibandla patibandl...@vcu.edu [20.02.2013 01:31]: distribution I'm using is OpenWrt Attitude_Adjustment, and the hardware is Ubiquiti Bullet 5 Ghz modem with AR2313 SoC. Without the init script if I We face similar problems. 1) Have you enabled zram? Those devices only have 16mb

Re: [OpenWrt-Devel] Init Script to Foreground

2012-01-18 Thread Pawel Pastuszak
I have look at this option but it applies to every time. So based on this solution i modified the rcS to look for my flag and set the foreground variable based on the result. Thanks for the help. Pawel On Wed, Jan 18, 2012 at 2:04 AM, Philip Prindeville philipp_s...@redfish-solutions.com

[OpenWrt-Devel] Init Script to Foreground

2012-01-17 Thread Pawel Pastuszak
Hello everybody, I have an odd question i am trying to find an way to have my init script on power up to take over the console so the process can be interrupted. It's pretty much if an flag is set to x in kernel arguments then do y but i want y to be the foreground process. What i notice all Init

Re: [OpenWrt-Devel] Init Script to Foreground

2012-01-17 Thread Luka Perkov
On Tue, Jan 17, 2012 at 01:42:13PM -0500, Pawel Pastuszak wrote: Hello everybody, I have an odd question i am trying to find an way to have my init script on power up to take over the console so the process can be interrupted. It's pretty much if an flag is set to x in kernel arguments then

Re: [OpenWrt-Devel] Init Script to Foreground

2012-01-17 Thread Jonathan Bither
Why not add a pre-init hook? On 01/17/2012 02:02 PM, Pawel Pastuszak wrote: Ok, but i am looking for it to go into the foreground and i want to lock the console access till it finished running it then reboot. Pawel On Tue, Jan 17, 2012 at 1:52 PM, Luka Perkov open...@lukaperkov.net

Re: [OpenWrt-Devel] Init Script to Foreground

2012-01-17 Thread Jonathan Bither
You can probably have a hook similar to the failsafe hook that does echo 1 /tmp/pawelhook and have your init script read it and do whatever you want. On 01/17/2012 02:10 PM, Pawel Pastuszak wrote: Need dhcp up first and everything mounted. So if there is an easy flag for that then i think

Re: [OpenWrt-Devel] Init Script to Foreground

2012-01-17 Thread Pawel Pastuszak
Yes but i already have an flag from kernel arguments. So and have created rc.d init script which looks for this but what i wanted is to bring that script into the foreground. On Tue, Jan 17, 2012 at 2:15 PM, Jonathan Bither jonbit...@gmail.comwrote: You can probably have a hook similar to the

Re: [OpenWrt-Devel] Init Script to Foreground

2012-01-17 Thread Philip Prindeville
I'm confused. So in /etc/config/system: config system option foreground 1 doesn't work for you? -Philip On 1/17/12 11:42 AM, Pawel Pastuszak wrote: Hello everybody, I have an odd question i am trying to find an way to have my init script on power up to take over the console so