~ubuntu-branches/ubuntu/jaunty/partman-reiserfs/jaunty

« back to all changes in this revision

Viewing changes to active_partition/reiserfs/do_option

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador, Updated translations
  • Date: 2008-09-21 21:23:10 UTC
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: james.westby@ubuntu.com-20080921212310-yg6h0reo6yedf1c2
Tags: 44
[ Updated translations ]
* Arabic (ar.po) by Ossama M. Khayat
* Bosnian (bs.po) by Armin Besirovic
* Welsh (cy.po) by Jonathan Price
* Danish (da.po)
* Hebrew (he.po) by Omer Zak
* Croatian (hr.po) by Josip Rodin
* Latvian (lv.po) by Peteris Krisjanis
* Portuguese (Brazil) (pt_BR.po) by Felipe Augusto van de Wiel (faw)
* Serbian (sr.po) by Veselin Mijušković

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
 
3
 
. /lib/partman/definitions.sh
 
3
. /lib/partman/lib/base.sh
4
4
 
5
5
dev=$2
6
6
id=$3
14
14
case $1 in
15
15
    mountpoint)
16
16
        if select_mountpoint $dev $id; then
17
 
            update_partition $dev $id
 
17
                update_partition $dev $id
18
18
        fi
19
19
        ;;
20
20
    options)
21
 
        select_mountoptions $dev $id partman-reiserfs/options
 
21
        select_mountoptions $dev $id
22
22
        ;;
23
23
    label)
 
24
        label=''
24
25
        if [ -f $part/label ]; then
25
 
            label=$(cat $part/label)
26
 
        else
27
 
            label=''
 
26
                label=$(cat $part/label)
28
27
        fi
29
28
        db_set partman-basicfilesystems/choose_label "$label"
30
29
        db_input critical partman-basicfilesystems/choose_label || true
31
30
        db_go || exit 1
32
31
        db_get partman-basicfilesystems/choose_label
33
32
        if [ "$RET" ]; then
34
 
            echo "$RET" >$part/label
 
33
                echo "$RET" >$part/label
35
34
        else
36
 
            rm -f $part/label
 
35
                rm -f $part/label
37
36
        fi
38
37
        db_reset partman-basicfilesystems/choose_label
39
38
        ;;
40
39
esac
41