openwrt installation

This commit is contained in:
psyc://psyced.org/~lynX 2012-02-09 11:12:12 +01:00
parent 5edef9e957
commit 4160c90466
3 changed files with 46 additions and 13 deletions

View 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

View File

@ -68,16 +68,3 @@ rights:
find . -type f -exec chmod 644 {} \; find . -type f -exec chmod 644 {} \;
chmod +x bin/* run/* config/psyced.settings install.sh utility/multipatcher 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

View File

@ -1773,6 +1773,7 @@ cmd(a, args, b, source, vars) {
} else { } else {
snames[source] = ARGS(1); snames[source] = ARGS(1);
#ifndef PLACE_MASQUERADE_SECRET #ifndef PLACE_MASQUERADE_SECRET
// should be "_notice_place_nick" ? (_local?)
castmsg(ME, "_notice_place_masquerade", castmsg(ME, "_notice_place_masquerade",
"[_nick] now masquerades as [_nick_local].", "[_nick] now masquerades as [_nick_local].",
([ "_nick" : previous_object()->qName(), ([ "_nick" : previous_object()->qName(),