~kedos-project/kedos/casper-precise

« back to all changes in this revision

Viewing changes to scripts/casper-bottom/07remove_oem_config

  • Committer: Drake Miller
  • Date: 2012-11-20 22:54:00 UTC
  • Revision ID: kedos.project@gmail.com-20121120225400-iyeepfisn0nru672
init

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
 
 
3
PREREQ=""
 
4
DESCRIPTION="Removing oem-config if installed..."
 
5
 
 
6
prereqs()
 
7
{
 
8
       echo "$PREREQ"
 
9
}
 
10
 
 
11
case $1 in
 
12
# get pre-requisites
 
13
prereqs)
 
14
       prereqs
 
15
       exit 0
 
16
       ;;
 
17
esac
 
18
 
 
19
. /scripts/casper-functions
 
20
 
 
21
# Only do this on ARM
 
22
if ! uname -m | grep -q arm; then exit 0; fi
 
23
 
 
24
log_begin_msg "$DESCRIPTION"
 
25
 
 
26
# if oem-config is installed, we need to remove it to remove the desktop
 
27
# file diversion, and to remove the OEM icons from showing up before we
 
28
# install the image.
 
29
 
 
30
chroot /root apt-get -y --purge remove oem-config </dev/null || true
 
31
 
 
32
log_end_msg