mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-08 11:31:01 +00:00
openwrt installation
This commit is contained in:
parent
5edef9e957
commit
4160c90466
45
config/openwrt/installation.sh
Normal file
45
config/openwrt/installation.sh
Normal file
@ -0,0 +1,45 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo _______________________________________________________________
|
||||
echo This installs psyced on an openwrt by deleting large parts of
|
||||
echo psyced that are not necessary. 3 seconds pause before we do it.
|
||||
echo _______________________________________________________________
|
||||
sleep 3
|
||||
|
||||
work_dir='openwrt-psyced'
|
||||
#deleting all previous attempt to build openwrt's ipkg psyced tree
|
||||
rm $work_dir -rf
|
||||
# preparing ipkg root dir
|
||||
mkdir $work_dir
|
||||
mkdir $work_dir/opt
|
||||
mkdir $work_dir/opt/psyced
|
||||
mkdir $work_dir/opt/psyced/local
|
||||
mkdir $work_dir/etc
|
||||
mkdir $work_dir/etc/init.d
|
||||
|
||||
cd $work_dir/opt/psyced && tar -xf ../../../data.tar
|
||||
|
||||
echo _______________________________________________________________
|
||||
echo Should you like to update psyced before we delete the git repo,
|
||||
echo suspend now and issue 'git pull'. The current version from git
|
||||
echo may be better or worse than what you have in the snapshot.
|
||||
echo _______________________________________________________________
|
||||
sleep 3
|
||||
|
||||
cp config/init.d/psyced-openwrt ../../etc/init.d/psyced
|
||||
cp config/psyced.ini ../../etc/psyced.ini
|
||||
# in order to respect base policies of psyced file/dir structure this section may change
|
||||
mv config/blueprint/* local
|
||||
|
||||
#FIXME: need to execute psyconf or add files generated by psyconf
|
||||
|
||||
#FIXME
|
||||
# what is this? can't execute in toolchain, maybe we have to put it in /etc/init.d/psyced?
|
||||
#ln -s /opt/psyced/local /etc/psyc
|
||||
|
||||
# removing large part of psyced
|
||||
rm -rf .git* CHANGESTODO install.sh bin/psyked bin/csv* config pike
|
||||
rm -rf run/* utility world/drivers/amylaar world/drivers/mudos log
|
||||
# directory is generated elsewhere
|
||||
ln -s /var/log/psyced log
|
||||
|
13
makefile
13
makefile
@ -68,16 +68,3 @@ rights:
|
||||
find . -type f -exec chmod 644 {} \;
|
||||
chmod +x bin/* run/* config/psyced.settings install.sh utility/multipatcher
|
||||
|
||||
openwrt:
|
||||
@echo This installs psyced on an openwrt by deleting large parts
|
||||
@echo of psyced that are not necessary. 3 seconds pause.
|
||||
@sleep 3
|
||||
mkdir local
|
||||
cp config/init.d/psyced-openwrt etc/init.d/psyced
|
||||
mv config/blueprint/* local
|
||||
mv config/psyced.ini local
|
||||
ln -s /opt/psyced/local /etc/psyc
|
||||
rm -r .git* CHANGESTODO install.sh bin/psyked bin/csv* config pike
|
||||
rm -r run/* utility world/drivers/amylaar world/drivers/mudos log
|
||||
# # directory is generated elsewhere
|
||||
ln -s /var/log/psyced log
|
||||
|
@ -1773,6 +1773,7 @@ cmd(a, args, b, source, vars) {
|
||||
} else {
|
||||
snames[source] = ARGS(1);
|
||||
#ifndef PLACE_MASQUERADE_SECRET
|
||||
// should be "_notice_place_nick" ? (_local?)
|
||||
castmsg(ME, "_notice_place_masquerade",
|
||||
"[_nick] now masquerades as [_nick_local].",
|
||||
([ "_nick" : previous_object()->qName(),
|
||||
|
Loading…
Reference in New Issue
Block a user