xref: /aosp_15_r20/external/e2fsprogs/debian/e2fsprogs.preinst (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker#!/bin/sh
2*6a54128fSAndroid Build Coastguard Worker
3*6a54128fSAndroid Build Coastguard Worker# Abort on error.
4*6a54128fSAndroid Build Coastguard Workerset -e
5*6a54128fSAndroid Build Coastguard Worker
6*6a54128fSAndroid Build Coastguard WorkerPKG=e2fsprogs
7*6a54128fSAndroid Build Coastguard WorkerDOCLNK=/usr/share/doc/$PKG
8*6a54128fSAndroid Build Coastguard Workerif test "$1" = upgrade \
9*6a54128fSAndroid Build Coastguard Worker    -a -L $DOCLNK
10*6a54128fSAndroid Build Coastguard Workerthen
11*6a54128fSAndroid Build Coastguard Worker    rm $DOCLNK
12*6a54128fSAndroid Build Coastguard Workerfi
13*6a54128fSAndroid Build Coastguard Worker
14*6a54128fSAndroid Build Coastguard Worker# dh_installdeb will replace this with shell code automatically
15*6a54128fSAndroid Build Coastguard Worker# generated by other debhelper scripts.
16*6a54128fSAndroid Build Coastguard Worker
17*6a54128fSAndroid Build Coastguard Worker#DEBHELPER#
18*6a54128fSAndroid Build Coastguard Worker
19*6a54128fSAndroid Build Coastguard Workerexit 0
20