Line | |
---|
1 | #!/bin/sh |
---|
2 | INSTDIR="$1" |
---|
3 | PLUGINDIR="$INSTDIR/usr/local/share/titan/plugins/sispmctl" |
---|
4 | |
---|
5 | if [ -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/sispmctl.conf >/dev/null 2>&1 |
---|
9 | |
---|
10 | mv "$PLUGINDIR/g1_script.sh" "$PLUGINDIR/bin/g1_script.sh_org" >/dev/null 2>&1 |
---|
11 | mv "$PLUGINDIR/g2_script.sh" "$PLUGINDIR/bin/g2_script.sh_org" >/dev/null 2>&1 |
---|
12 | mv "$PLUGINDIR/g3_script.sh" "$PLUGINDIR/bin/g3_script.sh_org" >/dev/null 2>&1 |
---|
13 | mv "$PLUGINDIR/g4_script.sh" "$PLUGINDIR/bin/g4_script.sh_org" >/dev/null 2>&1 |
---|
14 | |
---|
15 | cp /tmp/g1_script.sh "$PLUGINDIR/bin/g1_script.sh" >/dev/null 2>&1 |
---|
16 | cp /tmp/g2_script.sh "$PLUGINDIR/bin/g2_script.sh" >/dev/null 2>&1 |
---|
17 | cp /tmp/g3_script.sh "$PLUGINDIR/bin/g3_script.sh" >/dev/null 2>&1 |
---|
18 | cp /tmp/g4_script.sh "$PLUGINDIR/bin/g4_script.sh" >/dev/null 2>&1 |
---|
19 | fi |
---|
20 | |
---|
21 | if [ ! -d /mnt/plugin ]; then |
---|
22 | mkdir -p /mnt/plugin |
---|
23 | fi |
---|
24 | if [ ! -f /mnt/plugin/ps01sispm ]; then |
---|
25 | cp "$PLUGINDIR/ps01sispm_dummy" /mnt/plugin/ps01sispm |
---|
26 | cp "$PLUGINDIR/pe01sispm_dummy" /mnt/plugin/pe01sispm |
---|
27 | fi |
---|
28 | |
---|
29 | |
---|
30 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.