Mount JFFS2 Image
Saturday, October 25, 2008
Example of how to mount a JFFS2 image using mtdblock.
There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies.
- Charles Hoare
Insert Code File Header
Sunday, March 6, 2005 by digitalpeer
A simple BASH script that dynamically inserts headers such at copyright information and disclaimers in source files.
1) Inserts a header file into all files with the given extension.
2) Does so recursively.
3) Won't insert it if the header already exists.
4) Variables in the format %VARIABLE% are replaced in the header.
4-1) Replaces predefined variables in the header:
FILENAME (just file name)
FILEPATH (full file path)
TIME (06:11:43 PM)
DATE (2005-03-04)
4-2) Replaces user defined variables in the header. This includes
anything defined on the command line as an option in the
format --VARIABLE=VALUE and evaluates %VARIABLE% to VALUE in the
header.