postinst 1.52 KB
Newer Older
Diego Pasqualin's avatar
Diego Pasqualin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

# Copyright (C) 2004-2011 Centro de Computacao Cientifica e Software Livre
# Departamento de Informatica - Universidade Federal do Parana - C3SL/UFPR
#
# This file is part of le-pregao-232012
#
# le-pregao-232012 is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA.

echo "Running depmod..."
/sbin/depmod -a 3.2.0-40-generic-pae

echo "Loading module rt5592sta..."
modprobe rt5592sta || true

29
# Blacklist recovery partition
30
31
32
/etc/init.d/blacklist_backup_partition

update-rc.d -f blacklist_backup_partitioon start 90 2 3 4 5 .
33

34
35
36
37
# Update fstab to hide recovery partition from the user
FSTAB="/etc/fstab"
if ! grep -q '/backup' $FSTAB; then
    mkdir -p /backup
38
    chmod 700 /backup
39
    echo "" >> $FSTAB
40
41
    echo -e "# /backup was on /dev/sda3 during installation" >> $FSTAB
    echo -e "/dev/sda3\t/backup\text4\tnoauto,dmask=0700\t0\t0\n" >> $FSTAB
42
43
44
fi

# Start cups
45
46
service cups start || true

Diego Pasqualin's avatar
Diego Pasqualin committed
47
exit 0