From 4160c90466bf431d188bde9b1c2b21fca76099bf Mon Sep 17 00:00:00 2001 From: "psyc://psyced.org/~lynX" <@> Date: Thu, 9 Feb 2012 11:12:12 +0100 Subject: [PATCH] openwrt installation --- config/openwrt/installation.sh | 45 ++++++++++++++++++++++++++++++++++ makefile | 13 ---------- world/net/place/archetype.gen | 1 + 3 files changed, 46 insertions(+), 13 deletions(-) create mode 100644 config/openwrt/installation.sh diff --git a/config/openwrt/installation.sh b/config/openwrt/installation.sh new file mode 100644 index 0000000..953c62b --- /dev/null +++ b/config/openwrt/installation.sh @@ -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 + diff --git a/makefile b/makefile index 55ebea0..e34d6a0 100644 --- a/makefile +++ b/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 diff --git a/world/net/place/archetype.gen b/world/net/place/archetype.gen index 89152bf..825f60a 100644 --- a/world/net/place/archetype.gen +++ b/world/net/place/archetype.gen @@ -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(),