]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/partresize
2 ########################################################################
3 # Begin $rc_base/init.d/partresize
5 # Description : Resize the /var partition to the drivesize
7 # Authors : Arne Fitzenreiter - arne_f@ipfire.org
13 ########################################################################
21 boot_mesg
"Mounting root file system in read/write mode ..."
22 mount
-o remount
,rw
/ > /dev
/null
26 ROOT
=`mount | grep -m1 " / " | cut -d" " -f1`;
27 DRV
=${ROOT::`expr length $ROOT`-1}
29 boot_mesg
"Change Partition 4 to all free space ..."
30 echo -e 'd\n4\nn\np\n4\n\n\nw\nq\n' | fdisk
${DRV}
32 # Erase symlink, it should run only once
33 rm -f /etc
/rc.d
/rcsysinit.d
/S25partresize
35 boot_mesg
"Rebooting ..."
37 mount
-o remount
,ro
/ > /dev
/null
42 echo "Usage: ${0} {start}"
47 # End $rc_base/init.d/partresize