mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 23:13:13 +02:00
- add install.sh script
- install all scripts with proper permissions (755) git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@835 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
# FIXME!
|
installdir = $(DESTDIR)$(bindir)
|
||||||
#
|
|
||||||
#installdir = $(BINDIR)
|
install_DATA = \
|
||||||
#
|
backup.sh \
|
||||||
#install_DATA = \
|
restore.sh \
|
||||||
# backup.sh \
|
install.sh
|
||||||
# restore.sh
|
|
||||||
#
|
install-data-hook:
|
||||||
|
chmod 0755 $(DESTDIR)$(bindir)/backup.sh
|
||||||
|
chmod 0755 $(DESTDIR)$(bindir)/restore.sh
|
||||||
|
chmod 0755 $(DESTDIR)$(bindir)/install.sh
|
11
data/scripts/install.sh
Executable file
11
data/scripts/install.sh
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# 1st arg is dir where unpack, $2 file to be installed
|
||||||
|
|
||||||
|
cd $1
|
||||||
|
tar zxvf $2
|
||||||
|
./temp_inst/ctrl/preinstall.sh $PWD
|
||||||
|
cp -a ./temp_inst/inst/* /
|
||||||
|
./temp_inst/ctrl/postinstall.sh $PWD
|
||||||
|
rm -rf temp_inst
|
||||||
|
exit 0
|
||||||
|
|
Reference in New Issue
Block a user