|
@@ -42,17 +42,17 @@ familiars_at() {
|
42
|
42
|
# daemons specific to $1 location plus the rest
|
43
|
43
|
#
|
44
|
44
|
test -n "$1" || usagef "location"
|
45
|
|
- iniread -p iam.running.at.$1 iam.ini
|
46
|
|
- iniread -p iam.running.at.ANYPLACE iam.ini
|
|
45
|
+ iniread -p iam.running.at.$1
|
|
46
|
+ iniread -p iam.running.at.ANYPLACE
|
47
|
47
|
}
|
48
|
48
|
|
49
|
49
|
where_i_am() {
|
50
|
50
|
#
|
51
|
51
|
# what is my physical location?
|
52
|
52
|
#
|
53
|
|
- if=$(iniread -p iam.using.if iam.ini)
|
|
53
|
+ if=$(iniread -p iam.using.if)
|
54
|
54
|
gwmac=$(arp | grep "^gateway\\>.*\\<$if\$" | tr ' ' '\n' | grep :)
|
55
|
|
- iniread -p iam.seeing.gw.$gwmac iam.ini || echo OUT
|
|
55
|
+ iniread -p iam.seeing.gw.$gwmac || echo OUT
|
56
|
56
|
}
|
57
|
57
|
|
58
|
58
|
start_familiar() {
|
|
@@ -61,7 +61,7 @@ start_familiar() {
|
61
|
61
|
#
|
62
|
62
|
local f=$1
|
63
|
63
|
pids_matching $f && return 0
|
64
|
|
- local like=$(iniread -p iam.starting.like.this.$f iam.ini)
|
|
64
|
+ local like=$(iniread -p iam.starting.like.this.$f)
|
65
|
65
|
debug -v f like
|
66
|
66
|
if test -n "$like";
|
67
|
67
|
then
|
|
@@ -75,7 +75,7 @@ set_status() {
|
75
|
75
|
# set public status $1 by command in ini file
|
76
|
76
|
#
|
77
|
77
|
local what=$1
|
78
|
|
- iniread -p iam.saying.like.this.$what iam.ini | bash
|
|
78
|
+ iniread -p iam.saying.like.this.$what | bash
|
79
|
79
|
}
|
80
|
80
|
|
81
|
81
|
|