- Timestamp:
- Jun 29, 2007, 6:40:44 PM (18 years ago)
- Children:
- ba3e3d1
- Parents:
- 75d3d3c
- Location:
- package/fwwif/extra
- Files:
-
- 3 added
- 4 edited
-
Makefile (modified) (1 diff)
-
c_exec.c (added)
-
c_exec.h (added)
-
commit.ecpp (modified) (3 diffs)
-
fwwif.ecpp (modified) (1 diff)
-
fwws.css (modified) (2 diffs)
-
version.ecpp (added)
Legend:
- Unmodified
- Added
- Removed
-
package/fwwif/extra/Makefile
r75d3d3c rfd3230b 30 30 OBJS+= chpw.o c_chpw.o 31 31 OBJS+= md5.o md5hl.o md5crypt.o pwd_gensalt.o 32 OBJS+= commit.o 32 OBJS+= commit.o c_exec.o version.o 33 33 CLEANFILES= ${OBJS} ${OBJS:.o=.cpp} fwwif.so 34 34 IMAGES= logo.svg favicon.ico 35 35 36 fwwif.o header.o footer.o commit.o: common.h36 fwwif.o header.o footer.o: common.h 37 37 chpw.o c_chpw.o: c_chpw.h common.h 38 38 md5.o md5hl.o md5crypt.o: md5.h common.h 39 39 md5crypt.o pwd_gensalt.o c_chpw.o: md5crypt.h common.h 40 c_exec.o commit.o version.o: c_exec.h common.h 40 41 41 42 CLEANFILES+= md5hl.c -
package/fwwif/extra/commit.ecpp
r75d3d3c rfd3230b 27 27 #include "common.h" 28 28 #include <stdlib.h> 29 #include "c_exec.h" 29 30 __RCSID("$Id$"); 30 31 </%pre> … … 45 46 int i = 0; 46 47 const char *s = "fwcf commit"; 48 char *text; 47 49 48 50 // XXX flush output here 49 51 50 52 checkpoint = arc4random(); /* prevent re-use */ 51 i = system(s);53 text = c_exec(s, &i); 52 54 if (i) { 53 55 </%cpp> … … 59 61 to flash using the FreeWRT Configuration Filesystem.</p> 60 62 % } 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> 61 67 <p>Go <a href="javascript:back();">back</a> or to the <a href="/">index</a>.</p> 62 68 % } else { -
package/fwwif/extra/fwwif.ecpp
r75d3d3c rfd3230b 35 35 <ul> 36 36 <li><a href="chpw">change password</a></li> 37 <li > </li>37 <li style="list-style:none;"> </li> 38 38 <li><a href="commit">commit changes to flash</a> (FWCF)</li> 39 <li><a href="version">version information</a> (FWWIF)</li> 39 40 </ul> 40 41 <& footer> -
package/fwwif/extra/fwws.css
r75d3d3c rfd3230b 6 6 * Thorsten Glaser <tg@mirbsd.de> 7 7 * Parts of the style sheet are Copyright © 2004 8 * Benny Siegert <bsiegert@mirbsd.org> 8 9 * Josef Söntgen <cnuke@mirbsd.de> 9 10 * … … 66 67 border-top:inset; 67 68 } 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.
