~ubuntu-branches/ubuntu/warty/partman-auto/warty

« back to all changes in this revision

Viewing changes to debian/install-rc

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2004-08-31 18:05:28 UTC
  • Revision ID: james.westby@ubuntu.com-20040831180528-fbvemacbnztxsra3
Tags: 23ubuntu5
Display top-level partitioning choice again if you back up from it to
the main menu and then return to partman.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
set -e
 
4
 
 
5
PACKAGE=$(dh_listpackages)
 
6
partman=debian/${PACKAGE}/lib/partman
 
7
 
 
8
install -d $partman/$1
 
9
 
 
10
cp -r $1/* $partman/$1/
 
11
 
 
12
if [ -f $partman/$1/_numbers ]; then
 
13
    numbers=$(cat $partman/$1/_numbers)
 
14
    rm $partman/$1/_numbers
 
15
    echo "$numbers" |
 
16
    while read number name; do
 
17
        set -e
 
18
        mv $partman/$1/$name $partman/$1/${number}${name}
 
19
    done
 
20
fi
 
21