source: freewrt/target/linux/brcm-6.12/squashfs-overlay/files/etc/init.d/S20jffsclean@ 1b2d56f

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
3case $1 in
4autostart)
5 exec $0 start
6 ;;
7start)
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 ;;
16stop)
17 echo "no stop function implemented..."
18 ;;
19*)
20 echo "Usage: $0 {start | stop }"
21 exit 1
22 ;;
23esac
24exit $?
Note: See TracBrowser for help on using the repository browser.