|
|
@ -21,11 +21,13 @@ if [ "${0##*/}" = "firstboot" ]; then |
|
|
|
if [ "$1" = "switch2jffs" ]; then |
|
|
|
if [ "$1" = "switch2jffs" ]; then |
|
|
|
boot_run_hook switch2jffs |
|
|
|
boot_run_hook switch2jffs |
|
|
|
else |
|
|
|
else |
|
|
|
local input |
|
|
|
if [ -t 0 ] && [ "$1" != "-y" ]; then |
|
|
|
|
|
|
|
local input |
|
|
|
|
|
|
|
|
|
|
|
echo -n "firstboot will erase all settings and remove any installed packages. Are you sure? [N/y]" |
|
|
|
echo -n "firstboot will erase all settings and remove any installed packages. Are you sure? [N/y]" |
|
|
|
read input |
|
|
|
read input |
|
|
|
[ "$input" = "y" ] || [ "$input" = "Y" ] || return 0 |
|
|
|
[ "$input" = "y" ] || [ "$input" = "Y" ] || return 0 |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if [ -n "$jffs" ]; then |
|
|
|
if [ -n "$jffs" ]; then |
|
|
|
reset_has_fo=true |
|
|
|
reset_has_fo=true |
|
|
|