What's new

cifs client and ssh for original asuswrt

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

RMerlin, please help.

I decide add cron jobs to web ui.

in /jffs create /crontabs dir and admin file.

in /jffs/scripts/init-start add :
ln -s /jffs/crontabs/admin /var/spool/cron/crontabs/admin

in Adnvaced_System_Contene.asp add:
Code:
<table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3"  class="FormTable">
                <thead>
                <tr>
          <td colspan="2">Cron Jobs</td>
        </tr>
        </thead>
					<tr>
						<th>Cron Tasks</th>
						<td>
							<textarea rows="12" class="textarea_cron_table" name="cron_tasks" cols="64" maxlength="8192"><% nvram_dump("../jffs/crontabs/admin",""); %></textarea>
						</td>
				</tr>
</table>

this code only show content of /jffs/crontabs/admin file.

how make button "Save" to save edited content of text area to /jffs/crontabs/admin file?

thanks!
 
RMerlin, please help.

I decide add cron jobs to web ui.

in /jffs create /crontabs dir and admin file.

in /jffs/scripts/init-start add :
ln -s /jffs/crontabs/admin /var/spool/cron/crontabs/admin

in Adnvaced_System_Contene.asp add:
Code:
<table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3"  class="FormTable">
                <thead>
                <tr>
          <td colspan="2">Cron Jobs</td>
        </tr>
        </thead>
					<tr>
						<th>Cron Tasks</th>
						<td>
							<textarea rows="12" class="textarea_cron_table" name="cron_tasks" cols="64" maxlength="8192"><% nvram_dump("../jffs/crontabs/admin",""); %></textarea>
						</td>
				</tr>
</table>

this code only show content of /jffs/crontabs/admin file.

how make button "Save" to save edited content of text area to /jffs/crontabs/admin file?

thanks!

You can't. The webui can only deal with nvram content, unless you write your own special handler in httpd.
 
- renew to source RT-AC68W 376.1123
- remove clean jffs during firmware upgrade

P.S. waiting for RT-AC68U 376.1663 GPL source
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top