~ubuntu-branches/ubuntu/precise/checkbox/precise

« back to all changes in this revision

Viewing changes to patches/0.1-ubuntu13

  • Committer: Bazaar Package Importer
  • Author(s): Marc Tardif
  • Date: 2009-01-20 16:46:15 UTC
  • Revision ID: james.westby@ubuntu.com-20090120164615-7iz6nmlef41h4vx2
Tags: 0.4
* Setup bzr-builddeb in native mode.
* Removed LGPL notice from the copyright file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
package_old=`echo $1 | sed 's|checkbox|hwtest|'`
 
4
config_old="/etc/hwtest.d/$package_old.ini"
 
5
config_new="/etc/checkbox.d/$1.ini"
 
6
 
 
7
sed -e 's|hwtest|checkbox|g' -e 's|Hardware|System|' < $config_old > $config_new
 
8
 
 
9
if [ "$1" = "checkbox" ]; then
 
10
    cat <<'EOF' >>$config_new
 
11
[checkbox/plugins/boot_prompt]
 
12
enable = false
 
13
 
 
14
[checkbox/plugins/delay_prompt]
 
15
timeout = 0
 
16
 
 
17
EOF
 
18
fi
 
19
 
 
20
rm -f $config_old
 
21
rmdir --ignore-fail-on-non-empty `dirname $config_old`