source: ipk/source.sh4/networklib_e2webserv/CONTROL/postinst@ 24193

Last change on this file since 24193 was 24193, checked in by obi, 13 years ago

[tpk] add e2webserv

  • Property svn:executable set to *
File size: 538 bytes
Line 
1#!/bin/sh
2INSTDIR="$1"
3
4if [ -f /mnt/config/usercmd.sh ]; then
5 sed -i "/^exit/i$INSTDIR/bin/e2webserv -b -c /mnt/config/e2webserv.conf" /mnt/config/usercmd.sh
6fi
7
8if [ ! -e /mnt/config/e2webserv.conf ]; then
9 echo "use TPK config file"
10 mv /mnt/config/e2webserv.conf.e2 /mnt/config/e2webserv.conf
11 chmod -x /mnt/config/e2webserv.conf
12else
13 echo "found user config file"
14 echo "skip TPK config file: e2webserv.conf.e2"
15fi
16
17echo "start e2webserv..."
18$INSTDIR/e2webserv -b -c /mnt/config/e2webserv.conf > /dev/null 2>&1
19echo "done."
20
21exit 0
Note: See TracBrowser for help on using the repository browser.