Changeset fd3230b in freewrt for package


Ignore:
Timestamp:
Jun 29, 2007, 6:40:44 PM (18 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
ba3e3d1
Parents:
75d3d3c
Message:

integrate

  • a helper to catch the stdout and stderr of subprocesses
  • more of the MirBSD website's style sheet
  • version information

git-svn-id: svn://www.freewrt.org/trunk/freewrt@3032 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
package/fwwif/extra
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • package/fwwif/extra/Makefile

    r75d3d3c rfd3230b  
    3030OBJS+=          chpw.o c_chpw.o
    3131OBJS+=          md5.o md5hl.o md5crypt.o pwd_gensalt.o
    32 OBJS+=          commit.o
     32OBJS+=          commit.o c_exec.o version.o
    3333CLEANFILES=     ${OBJS} ${OBJS:.o=.cpp} fwwif.so
    3434IMAGES=         logo.svg favicon.ico
    3535
    36 fwwif.o header.o footer.o commit.o: common.h
     36fwwif.o header.o footer.o: common.h
    3737chpw.o c_chpw.o: c_chpw.h common.h
    3838md5.o md5hl.o md5crypt.o: md5.h common.h
    3939md5crypt.o pwd_gensalt.o c_chpw.o: md5crypt.h common.h
     40c_exec.o commit.o version.o: c_exec.h common.h
    4041
    4142CLEANFILES+=    md5hl.c
  • package/fwwif/extra/commit.ecpp

    r75d3d3c rfd3230b  
    2727#include "common.h"
    2828#include <stdlib.h>
     29#include "c_exec.h"
    2930__RCSID("$Id$");
    3031</%pre>
     
    4546                int i = 0;
    4647                const char *s = "fwcf commit";
     48                char *text;
    4749
    4850                // XXX flush output here
    4951
    5052                checkpoint = arc4random();      /* prevent re-use */
    51                 i = system(s);
     53                text = c_exec(s, &i);
    5254                if (i) {
    5355</%cpp>
     
    5961 to flash using the FreeWRT Configuration Filesystem.</p>
    6062%               }
     63<p class="blkbeg">The “fwcf commit” utility returned the following output:</p>
     64<pre class="blkmid">
     65%               reply.sout() << text;
     66</pre><p class="blkend">The exit code was <$ WEXITSTATUS(i) $>.</p>
    6167<p>Go <a href="javascript:back();">back</a> or to the <a href="/">index</a>.</p>
    6268%       } else {
  • package/fwwif/extra/fwwif.ecpp

    r75d3d3c rfd3230b  
    3535<ul>
    3636 <li><a href="chpw">change password</a></li>
    37  <li>&nbsp;</li>
     37 <li style="list-style:none;">&nbsp;</li>
    3838 <li><a href="commit">commit changes to flash</a> (FWCF)</li>
     39 <li><a href="version">version information</a> (FWWIF)</li>
    3940</ul>
    4041<& footer>
  • package/fwwif/extra/fwws.css

    r75d3d3c rfd3230b  
    66 *      Thorsten Glaser <tg@mirbsd.de>
    77 * Parts of the style sheet are Copyright © 2004
     8 *      Benny Siegert <bsiegert@mirbsd.org>
    89 *      Josef Söntgen <cnuke@mirbsd.de>
    910 *
     
    6667        border-top:inset;
    6768}
     69
     70.blkbeg {
     71        margin-bottom:0px;
     72}
     73
     74.blkmid {
     75        border:4px ridge blue;
     76        margin:0px 24px 0px 24px;
     77        padding:12px;
     78}
     79
     80.blkend {
     81        margin-top:0px;
     82}
Note: See TracChangeset for help on using the changeset viewer.