Line 0
Link Here
|
|
|
1 |
#!/sbin/runscript |
2 |
# (c) Dzianis Kahanovich |
3 |
# Distributed under the terms of the GNU General Public License v2 |
4 |
|
5 |
description="Force nilfs2_cleanerd on root" |
6 |
|
7 |
depend() |
8 |
{ |
9 |
need root |
10 |
before mtab |
11 |
} |
12 |
|
13 |
start() |
14 |
{ |
15 |
if [[ -e /etc/conf.d/fsck ]]; then |
16 |
. /etc/conf.d/fsck |
17 |
if ! yesno ${fsck_on_battery:-YES} && ! on_ac_power; then |
18 |
ewarn "Not forcing nilfs2_cleanerd due to not being on AC power & /etc/conf.d/fsck" |
19 |
return 0 |
20 |
fi |
21 |
fi |
22 |
ebegin "Remounting root filesystem fake to help nilfs2" |
23 |
mount -fo remount / |
24 |
eend $? |
25 |
return $? |
26 |
} |