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
24 if [ -t 0 ] && [ "$1" != "-y" ]; then
27 echo -n "firstboot will erase all settings and remove any installed packages. Are you sure? [N/y]"
29 [ "$input" = "y" ] || [ "$input" = "Y" ] || return 0
32 if [ -n "$jffs" ]; then
34 echo "firstboot has already been run"
35 echo "jffs2 partition is mounted, only resetting files"
36 boot_run_hook jffs2reset
39 mount -o noatime "$mtdpart" /overlay -t jffs2
40 fopivot /overlay /rom 1