| Author |
Message |
jockjunior
Joined: 29 Jan 2008 Posts: 143 Location: Lancashire,U.K.
|
Posted: Wed 11 Apr 2012, 05:18 Post subject:
Startup script not recognised Subject description: scriptt added to folder |
|
Hi
just addes a script to Startup but Puppy is not loading it. It's the same script I have used before on Puppy and it has worked before. If I run it manually it works .
If I cd to startup and type sh blocktracker it loads
Puppy 528.004
Any ideas?
ta
|
|
Back to top
|
|
 |
MinHundHettePerro

Joined: 05 Feb 2009 Posts: 831 Location: SE
|
Posted: Wed 11 Apr 2012, 06:18 Post subject:
|
|
| Code: | | chmod +x blocktracker |
?/MHHP
_________________ Celeron 2.8 GHz, 1 GiB RAM, i82845 graphics, many partitions, Pupmode 12 (13)
Mostly running Slacko & 214X
Nämen, vaf.... ln -s /dev/null MHHP
|
|
Back to top
|
|
 |
jockjunior
Joined: 29 Jan 2008 Posts: 143 Location: Lancashire,U.K.
|
Posted: Wed 11 Apr 2012, 15:27 Post subject:
|
|
Thanks Mate,
sorry that didnt work . How can I check that the folder
Startup is actually being accessed?
|
|
Back to top
|
|
 |
MinHundHettePerro

Joined: 05 Feb 2009 Posts: 831 Location: SE
|
Posted: Wed 11 Apr 2012, 17:24 Post subject:
|
|
Just a suggestion,
you could, for debugging purposes, insert the code in red below into /usr/sbin/delayedrun, starting at line 130 | Quote: | #v2.17 suggested by andrei...
if [ -d /root/Startup ];then
for a in /root/Startup/*
do
echo -e "\n">>/tmp/Startup_debug_log
ls -Al "$a" >>/tmp/Startup_debug_log
[ -x "$a" ] && echo -e "executable">>/tmp/Startup_debug_log && $a &
sleep 0.2
done
fi
| restart, and check the resulting /tmp/Startup_debug_log for clues (or post it here).
Cheers / MHHP
_________________ Celeron 2.8 GHz, 1 GiB RAM, i82845 graphics, many partitions, Pupmode 12 (13)
Mostly running Slacko & 214X
Nämen, vaf.... ln -s /dev/null MHHP
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3687 Location: Charleston S.C. USA
|
Posted: Wed 11 Apr 2012, 23:57 Post subject:
|
|
What does blocktracker script do?
_________________ I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
Puppy Help 101 An interactive tutorial for Puppy 5.2.5
|
|
Back to top
|
|
 |
jockjunior
Joined: 29 Jan 2008 Posts: 143 Location: Lancashire,U.K.
|
Posted: Thu 12 Apr 2012, 05:02 Post subject:
|
|
Hi Bigpup it loads a list of ip addresses into iptables to block tracking from data harvester sites. Sorry for delay in replying we've got the builders in.
startup debug-log
-rwxr-xr-x 1 root root 1191 2012-04-11 21:59 /root/Startup/blocktracker.sh
executable /root/Startup/blocktracker.sh
-rwxr-xr-x 1 root root 10368 2010-08-21 14:32 /root/Startup/freememapplet_tray
executable /root/Startup/freememapplet_tray
-rwxr-xr-x 1 root root 766 2011-05-15 03:51 /root/Startup/fullstart
executable /root/Startup/fullstart
-rwxr-xr-x 1 root root 207 2010-12-29 03:57 /root/Startup/gamespatch.sh
executable /root/Startup/gamespatch.sh
-rwxr-xr-x 1 root root 2290 2011-08-08 00:11 /root/Startup/install-flashplayer
executable /root/Startup/install-flashplayer
-rwxrwxrwx 1 root root 133 2010-10-01 00:41 /root/Startup/load-touchpad-settings
executable /root/Startup/load-touchpad-settings
-rwxr-xr-x 1 root root 13736 2010-12-01 09:00 /root/Startup/network_tray
executable /root/Startup/network_tray
-rwxr-xr-x 1 root root 21 2009-08-23 13:18 /root/Startup/nodpms
executable /root/Startup/nodpms
-rwxr-xr-x 1 root root 12008 2010-10-06 14:58 /root/Startup/powerapplet_tray
executable /root/Startup/powerapplet_tray
-rw-r--r-- 1 root root 674 2009-11-19 09:03 /root/Startup/README.txt
-rwxr-xr-x 1 root root 77 2010-12-25 21:06 /root/Startup/run_fixmenus
executable /root/Startup/run_fixmenus
-rwxr-xr-x 1 root root 127 2011-08-03 03:20 /root/Startup/set-numlock
executable /root/Startup/set-numlock
-rwxr-xr-x 1 root root 28 2012-04-09 23:04 /root/Startup/ss-off
executable /root/Startup/ss-off
-rw-r--r-- 1 root root 114 2011-04-01 03:07 /root/Startup/stay-connected.sh
-rw-r--r-- 1 root root 627 2011-12-09 16:49 /root/Startup/test_if_connected
-rwxr-xr-x 1 root root 239 2012-04-11 10:07 /root/Startup/timesync.sh
executable /root/Startup/timesync.sh
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3687 Location: Charleston S.C. USA
|
Posted: Thu 12 Apr 2012, 11:48 Post subject:
|
|
Can you post the code of the Blocktracker script.
Do not need the list of Ip addresses, just the execute code.
What does ss-off script do?
_________________ I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
Puppy Help 101 An interactive tutorial for Puppy 5.2.5
|
|
Back to top
|
|
 |
Aitch

Joined: 04 Apr 2007 Posts: 6825 Location: Chatham, Kent, UK
|
Posted: Thu 12 Apr 2012, 14:13 Post subject:
|
|
looks like screensaver off...?
http://ubuntuforums.org/archive/index.php/t-1090393.html
but could be start script off....
Aitch
|
|
Back to top
|
|
 |
jockjunior
Joined: 29 Jan 2008 Posts: 143 Location: Lancashire,U.K.
|
Posted: Thu 12 Apr 2012, 14:43 Post subject:
|
|
#! /bin/sh -e
#
# update_iptables.sh
# ------------------
# Shell script to read a file of IP addresses (in CIDR notation),
# one per line and terminated with a last line of "eof" and to
# update iptables to REJECT (with reason icmp-admin-prohibited) any outbound traffic
# to these addresses. Will output a message to your syslog for each block.
#
# 1) You must have iptables installed (I think most distros will have it installed already).
# 2) You must run this script as root (I use crontab to run it once a day and on reboot)
# 3) Don't forget to make this script exexcutable!
# 4) You can make your blocklist file editable by a trusted non-root user if you wish.
#
# ***** EDIT LINE BELOW with location of your blocklist file *****
IPLIST="/ip.data"
# *****-----------ho-------------------------------------------*****
# Clear existing iptables
/sbin/iptables --flush
# Configure iptables with addresses we block from going out
while read line
do
/sbin/iptables -A OUTPUT -d $line -j LOG --log-prefix "BLOCKED TRACKING SITE: "
/sbin/iptables -A OUTPUT -d $line -j REJECT --reject-with icmp-admin-prohibited
done < $IPLIST
# Display new iptables
#/sbin/iptables --list
# Exit
exit
dont know about ss-off but I did switch off screensaver to watch a video so maybe it's as Aitch suggests.
What baffles me is it runs if I do it manually. I open the Startup folder in rox and click on blocktracker.sh and it runs ?????
EDIT
Aaaaarrrrgh!
just looked in the taskbar and it's not loading network tray or power applet either
|
|
Back to top
|
|
 |
jockjunior
Joined: 29 Jan 2008 Posts: 143 Location: Lancashire,U.K.
|
Posted: Thu 12 Apr 2012, 17:44 Post subject:
Subject description: solved |
|
used a backup savefile and problem gone. Must have been corrupted some way.
thanks for your input guys
|
|
Back to top
|
|
 |
MinHundHettePerro

Joined: 05 Feb 2009 Posts: 831 Location: SE
|
Posted: Thu 12 Apr 2012, 18:43 Post subject:
|
|
Hello !
At least my makeshift debugging script thingy shows that the scripts in /root/Startup are found and the ones that are executable at least are attempted to be run at startup (including your blocktracker.sh)
EDIT: saw that you got it working while I was writing ..
Cheers / MHHP
_________________ Celeron 2.8 GHz, 1 GiB RAM, i82845 graphics, many partitions, Pupmode 12 (13)
Mostly running Slacko & 214X
Nämen, vaf.... ln -s /dev/null MHHP
|
|
Back to top
|
|
 |
bigpup

Joined: 11 Oct 2009 Posts: 3687 Location: Charleston S.C. USA
|
Posted: Fri 13 Apr 2012, 03:45 Post subject:
Subject description: solved |
|
| jockjunior wrote: | used a backup savefile and problem gone. Must have been corrupted some way.
thanks for your input guys |
Well, start fresh always does seem to work.
Maybe that is why tech-repair always say they need to reinstall operating system to fix problem.
_________________ I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
Puppy Help 101 An interactive tutorial for Puppy 5.2.5
|
|
Back to top
|
|
 |
|