9 firstboot_skip_next=false
11 for fb_source_file in /lib/firstboot/*; do
19 # invoked as an executable
20 if [ "${0##*/}" = "firstboot" ]; then
21 if [ "$1" = "switch2jffs" ]; then
22 boot_run_hook switch2jffs
26 echo -n "firstboot will erase all settings and remove any installed packages. Are you sure? [N/y]"
28 [ "$input" = "y" ] || [ "$input" = "Y" ] || return 0
30 if [ -n "$jffs" ]; then
32 echo "firstboot has already been run"
33 echo "jffs2 partition is mounted, only resetting files"
34 boot_run_hook jffs2reset
37 mount -o noatime "$mtdpart" /overlay -t jffs2
38 fopivot /overlay /rom 1