Check-in [29803f148a]
Logged in as anonymous
Overview
Comment:fix scripts
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 29803f148a80807e258a2344a8a1d9f5084d60e7d5d0712fbeb313f3566fe7ea
User & Date: arcade on 2019-10-22 08:34:05.173
Other Links: manifest | tags
Context
2019-10-23
06:33
add rc script check-in: 17041521b1 user: arcade tags: trunk
2019-10-22
08:34
fix scripts check-in: 29803f148a user: arcade tags: trunk
2019-10-21
18:57
add some targets, add fsck fallbacks check-in: 5621f7a556 user: arcade tags: trunk
Changes
1
2
3
4
5
6
7
8



9
1
2
3
4
5



6
7
8
9





-
-
-
+
+
+

cleartmp: mountlate
	echo "MRC:$@> Clearing tmp."; \
	find -x /tmp -mindepth 1 ! -name lost+found \
	    ! -name snapshots ! -path "./snapshots/*" \
	    ! -name quota.user ! -name quota.group \
	    -exec rm -rf -- {} \; -type d -prune); \
	  rm -f /tmp/.X*-lock; \
	  rm -fr /tmp/.X11-unix; \
	    -delete -type d -prune ;\
	  rm -f /tmp/.X*-lock ;\
	  rm -fr /tmp/.X11-unix ;\
	  mkdir -m 1777 /tmp/.X11-unix
1
2
3
4
5


6
7
8
9


10
11
12
13
14
15





16
17
18
19
20
21
22
23
24
25
26
27
28












29
30
31
32
33
34







35
1
2
3


4
5




6
7






8
9
10
11
12













13
14
15
16
17
18
19
20
21
22
23
24






25
26
27
28
29
30
31
32



-
-
+
+
-
-
-
-
+
+
-
-
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+

fsck:
	echo "MRC:$@> Checking disks." ;\
	fsck -p ;\
	case $$? in ;\
	0) ;\
	case $$? in \
	0) ;; \
	  ;; ;\
	2) ;\
	  exit 1;\
	  ;; ;\
	2) exit 1 \
	   ;; \
	4) ;\
	  echo "Rebooting..." ;\
	  reboot ;\
	  echo "Reboot failed; help!" ;\
	  exit 1 ;\
	  ;; ;\
	4) echo "Rebooting..." ;\
	   reboot ;\
	   echo "Reboot failed; help!" ;\
	   exit 1 \
	   ;; \
	8) ;\
	  if [ -n "$${FSCK_Y_ENABLE}" ]; then \
	    echo "File system preen failed, trying fsck -y." ;\
	    fsck -y || {\
	      echo "Automatic file system check failed; help!" ;\
	      exit 1 '\
	    }\
	  else \
	    echo "Automatic file system check failed; help!" ;\
	    exit 1 ;\
	  fi ;\
	12) ;\
	  echo "Boot interrupted." ;\
	8) if [ -n "$${FSCK_Y_ENABLE}" ]; then \
	     echo "File system preen failed, trying fsck -y." ;\
	     fsck -y || {\
	       echo "Automatic file system check failed; help!" ;\
	       exit 1 ;\
	     }\
	   else \
	     echo "Automatic file system check failed; help!" ;\
	     exit 1 ;\
	   fi ;\
	   ;; \
	12) echo "Boot interrupted." ;\
	130) ;\
	  exit 1 ;\
	*) ;\
	  echo "Unknown error, help!" ;\
	  exit 1 ;\
	  ;; ;\
	   exit 1 \
	   ;; \
	130) exit 1 \
	   ;; \
	*) echo "Unknown error, help!" ;\
	   exit 1 \
	   ;; \
	esac