b92fb0c826
for reinstallation. - Use @dirrmtry instead of @dirrm for lib/oss, lib/oss/etc, and lib/oss/logs to preserve user data and to avoid errors when deinstalling. - Move files/pkg-message.in to pkg-message because it is static. - Sort pkg-plist by destination paths. Approved by: glewis (mentor)
11 lines
256 B
Bash
11 lines
256 B
Bash
#! /bin/sh
|
|
|
|
case $2 in
|
|
POST-INSTALL)
|
|
if ! test -f %%PREFIX%%/lib/oss/etc/installed_drivers; then
|
|
%%PREFIX%%/sbin/ossdetect -v
|
|
fi
|
|
if ! test -f %%PREFIX%%/lib/oss/etc/userdefs; then
|
|
echo "autosave_mixer yes" > %%PREFIX%%/lib/oss/etc/userdefs
|
|
fi
|
|
esac
|