]>
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 # Ensure that / is writeable
25 ROOT
=`mount | grep -m1 " / " | cut -d" " -f1`;
26 DRV
=${ROOT::`expr length $ROOT`-1}
28 boot_mesg
"Change Partition 4 to all free space ..."
29 echo -e 'd\n4\nn\np\n4\n\n\nw\nq\n' | fdisk
${DRV}
31 # Erase symlink, it should run only once
32 rm -f /etc
/rc.d
/rcsysinit.d
/S25partresize
34 boot_mesg
"Rebooting ..."
39 echo "Usage: ${0} {start}"
44 # End $rc_base/init.d/partresize