freewrt_2_0
|
Last change
on this file since 1b2d56f was 1b2d56f, checked in by Waldemar Brodkorb <wbx@…>, 4 months ago |
|
linux: update to 6.12, cleanup
|
-
Property mode
set to
100755
|
|
File size:
464 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 |
|
|---|
| 3 | case $1 in
|
|---|
| 4 | autostart)
|
|---|
| 5 | exec $0 start
|
|---|
| 6 | ;;
|
|---|
| 7 | start)
|
|---|
| 8 | # if / is tmpfs, we have an old or broken jffs2
|
|---|
| 9 | # erase data partition and set flag between bootloader and kernel
|
|---|
| 10 | { mount|grep "on / type tmpfs" 1>&-; } && {
|
|---|
| 11 | mtd erase data
|
|---|
| 12 | jffs2root --clean
|
|---|
| 13 | /bin/sync && /bin/busybox reboot -f
|
|---|
| 14 | }
|
|---|
| 15 | ;;
|
|---|
| 16 | stop)
|
|---|
| 17 | echo "no stop function implemented..."
|
|---|
| 18 | ;;
|
|---|
| 19 | *)
|
|---|
| 20 | echo "Usage: $0 {start | stop }"
|
|---|
| 21 | exit 1
|
|---|
| 22 | ;;
|
|---|
| 23 | esac
|
|---|
| 24 | exit $?
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.