blob: 460c3f2fa196551377a61ff8eb9215de5e653e52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
# check whether /usr is writable
tiptoe="${PKG_INSTALL_ROOT}/usr/_.$$"
touch "$tiptoe" >/dev/null 2>&1
if [ $? -ne 0 ]; then
exit 0
fi
rm -f "$tiptoe"
# update shared mime database
if [ -x /usr/bin/update-mime-database ]; then
update-mime-database ${PKG_INSTALL_ROOT}/usr/share/mime
fi
exit 0
|