]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/fsresize
2 ########################################################################
3 # Begin $rc_base/init.d/fsresize
5 # Description : Resize the root filesystem in the background
7 # Authors : Arne Fitzenreiter - arne_f@ipfire.org
13 ########################################################################
20 boot_mesg
"Background Autoresize root partition to use the whole drive"
22 ROOT
=`mount | grep -m1 " / " | cut -d" " -f1`;
23 DRV
=${ROOT::`expr length $ROOT`-1}
25 boot_mesg
"resize ${DRV}3 ..."
26 nice
-n 19 $0 background
${DRV}3 > /dev
/null
&
31 # Erase symlink, it should run only once
32 rm -f /etc
/rc.d
/rcsysinit.d
/S42fsresize
39 echo "Usage: ${0} {start}"
44 # End $rc_base/init.d/26fsresize