source: ipk/source.arm/tools_sispmctl/CONTROL/postinst @ 41768

Last change on this file since 41768 was 41768, checked in by gost, 3 years ago

[plugin] sispmctl extension

File size: 476 bytes
Line 
1#!/bin/sh
2INSTDIR="$1" 
3PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/sispmctl"
4
5if [ -e /tmp/sispmctl.conf ]; then
6        mv "$PLUGINDIR/sispmctl.conf" "$PLUGINDIR/sispmctl.conf_org"
7        cp /tmp/sispmctl.conf "$PLUGINDIR/sispmctl.conf"
8        rm /tmp/isispmctl.conf
9fi
10
11if [ ! -d /mnt/plugin ]; then
12        mkdir -p /mnt/plugin
13fi
14if [ ! -f /mnt/plugin/ps01sispm ]; then
15        cp "$PLUGINDIR/ps01sispm_dummy" /mnt/plugin/ps01sispm
16        cp "$PLUGINDIR/pe01sispm_dummy" /mnt/plugin/pe01sispm
17fi
18
19
20exit 0
Note: See TracBrowser for help on using the repository browser.