#!/bin/sh
echo "added to install"
	
if ! [ -d /etc/ConfFS ];  then
    echo "webradioFS-install: make dir ConfFS"
    mkdir -p /etc/ConfFS
fi

if ! [ -d /usr/lib/enigma2/python/Plugins/Extensions/WebInterface ];  then
    echo "webradioFS-install: copy files for webinterface"
    mkdir -p /usr/lib/enigma2/python/Plugins/Extensions/WebInterface
    cp -ar /tmp/wbrfs_wif/* /usr/lib/enigma2/python/Plugins/Extensions/WebInterface
    ln -s /usr/lib/enigma2/python/Plugins/Extensions/OpenWebif/pluginshook.scr /usr/lib/enigma2/python/Plugins/Extensions/WebInterface/Toplevel.py 
    rm -rf /tmp/wbrfs_wif
fi

