]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/fsresize
2 ########################################################################
3 # Begin $rc_base/init.d/fsresize
5 # Description : Resize the /var filesystem
7 # Authors : Arne Fitzenreiter - arne_f@ipfire.org
13 ########################################################################
20 boot_mesg
"Mounting root file system in read/write mode ..."
21 mount
-o remount
,rw
/ > /dev
/null
24 boot_mesg
"Autoresize /var partition to use the whole drive ..."
26 ROOT
=`mount | grep -m1 " / " | cut -d" " -f1`;
27 DRV
=${ROOT::`expr length $ROOT`-1}
28 boot_mesg
" * check filesystem on ${DRV}4 before resize ..."
31 boot_mesg
" * resize ${DRV}4 ..."
35 # Erase symlink, it should run only once
36 rm -f /etc
/rc.d
/rcsysinit.d
/S26fsresize
42 echo "Usage: ${0} {start}"
47 # End $rc_base/init.d/26fsresize