View Single Post
Posts: 238 | Thanked: 131 times | Joined on May 2011 @ Bulgaria
#7
Hi to all and Happy New Year,first congratulations for these tools,but i have a several problems about configuration files.
1.
Now comes the hard part. There's a few places we need to fix things to make prey work with Maemo. First edit the file prey/modules/geo/core/functions and add the line "wifi_points=${wifi_points//\\/}" under the if statement so it looks like this:
....
if [ -n "$wifi_points" ]; then
wifi_points=${wifi_points//\\/}
current_location_json....
in my prey/modules/geo/core/functions:
get_current_location() {
if [ -n "$wifi_points" ]; then

local query=$(echo $wifi_points | tr -d '}"\\' | \
awk 'BEGIN {RS=","; FS=":"}
/mac_address/ { gsub(/ /,"", $2); printf
where exactly i have to put that line wifi_points=${wifi_points//\\/}
under
if [ -n "$wifi_points" ]; then
2.That line no exist in prey/core/functions
(crontab -l | grep -v prey; echo "${new_delay}" "${full_path}/prey.sh > /var/log/prey.log") | crontab -
in my is
(crontab -l 2> /dev/null | grep -v prey; echo "${1}" "${full_path}/prey.sh > /var/log/prey.log 2>&1") | crontab -
maybe i have to remove:
(crontab -l 2> /dev/null | grep -v prey; echo "${1}" "${full_path}/prey.sh > /var/log/prey.log 2>&1") | crontab -
and paste this:
(crontab -l | grep -v prey; echo "${new_delay}" "bash4 ${full_path}/prey.sh > /home/opt/prey/prey.log") | crontab -
3.Last, edit platform/linux/functions and change the line
"if [ "`whoami`" != "$logged_user" ]; then"
to:
if [ "`whoami`" != "root" ]; then
this one is not problem,sorry if i ask to much from you but if someone is able to instаlled successfully,any help it will be very useful
regards