~michael-gruz/+junk/cnijfilter-common-ia32

« back to all changes in this revision

Viewing changes to debian/cnijfilter-ip4600series.postinst

  • Committer: Michael Gruz
  • Date: 2011-11-15 00:28:16 UTC
  • Revision ID: michael-gruz@seznam.cz-20111115002816-gfawm7li72uyxxqw
Modifi to work on AMD64

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
PKG_INFO=cnijfilter-ip4600-334;
4
 
 
5
 
model_name=`echo ${PKG_INFO} | cut -d- -f2`
6
 
model_num=`echo ${PKG_INFO} | cut -d- -f3`
7
 
 
8
 
_cups_path1=/usr/share/ppd
9
 
_cups_path2=/usr/share/cups/model
10
 
ppd_name=canon${model_name}.ppd
11
 
 
12
 
if [ -x /sbin/ldconfig ]; then
13
 
        /sbin/ldconfig
14
 
fi
15
 
# make symbolic link for ppd
16
 
if [ ! -d ${_cups_path2} ]; then
17
 
        mkdir ${_cups_path2}
18
 
fi
19
 
ln -fs ${_cups_path1}/${ppd_name} ${_cups_path2}/${ppd_name}