@ -25,7 +25,6 @@ main_sf() {
cd $root/
cd $root/
echo "Creating various etc/* files ..."
echo "Creating various etc/* files ..."
mkdir -p etc/conf etc/rc.d etc/stone.d etc/network
for x in $( cd $confdir ; echo etc_*.txt ) ; do
for x in $( cd $confdir ; echo etc_*.txt ) ; do
y="${x%.txt}" ; z="/"
y="${x%.txt}" ; z="/"
if [ -f "${y//_/$z}" ]
if [ -f "${y//_/$z}" ]
@ -60,14 +59,14 @@ EOT
echo "Installing the stone setup tool ..."
echo "Installing the stone setup tool ..."
cp -v $confdir/stone.sh usr/sbin/stone
cp -v $confdir/stone.sh usr/sbin/stone
chmod +x usr/sbin/stone ; mkdir -p etc/stone.d
chmod +x usr/sbin/stone
for x in $( cd $confdir ; echo stone_*.sh ) ; do
for x in $( cd $confdir ; echo stone_*.sh ) ; do
cp -v $confdir/$x etc/stone.d/${x#stone_}
cp -v $confdir/$x etc/stone.d/${x#stone_}
done
done
echo "Installing the rock-net tool ..."
echo "Installing the rock-net tool ..."
cp -v $confdir/rocknet.sh etc/network/rocknet
cp -v $confdir/rocknet.sh etc/network/rocknet
chmod +x etc/network/rocknet ; mkdir -p etc/network/modules
chmod +x etc/network/rocknet
for x in $( cd $confdir ; echo rocknet_*.sh ) ; do
for x in $( cd $confdir ; echo rocknet_*.sh ) ; do
dst="${x#rocknet_}" ; z="/"
dst="${x#rocknet_}" ; z="/"
dst="${dst//_/$z}"
dst="${dst//_/$z}"