blob: 6e33cc00d165a2af41a101fed718c4a8b7937635 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
CONFIG_DIR="$XDG_CONFIG_HOME"
[ -z "$CONFIG_DIR" ] && CONFIG_DIR="$HOME/.config"
ADMIN_DIR=/usr/share/kerio-firewall-admin/Admin
export WINEPREFIX="$CONFIG_DIR/kerio-firewall-admin"
export WINEDLLOVERRIDES="mscoree,mshtml,winemp3.acm="
export WINEBASE="/usr/lib/kerio-firewall-admin/wine"
export WINESERVER="$WINEBASE/bin/wineserver"
if [ ! -d "$WINEPREFIX" ] ; then
mkdir -p "$WINEPREFIX/drive_c/Kerio" || exit 1
"$WINEBASE/bin/wineboot" -u
fi
if [ ! -e "$WINEPREFIX/drive_c/Kerio/Admin" ]; then
ln -s "$ADMIN_DIR" "$WINEPREFIX/drive_c/Kerio/Admin"
fi
"$WINEBASE/bin/wine" "C:\\Kerio\\Admin\\kadmin.exe" "$@"
|