7 .
/lib
/functions
/boot.sh
9 firstboot_skip_next
=false
11 for fb_source_file
in /lib
/firstboot
/*; do
15 # invoked as an executable
16 if [ "${0##*/}" = "firstboot" ]; then
17 if [ "$1" = "switch2jffs" ]; then
18 boot_run_hook switch2jffs
19 elif [ -z "$jffs" ]; then
21 echo "firstboot has already been run"
22 echo "jffs2 partition is mounted, only resetting files"
23 boot_run_hook jffs2reset
26 mount
"$mtdpart" /jffs
-t jffs2