Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nayuos-ebuilds
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
nayuos-ebuilds
Commits
80250e58
Commit
80250e58
authored
Nov 25, 2015
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cfg + improve run in re6st scripts.
parent
37b63740
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
net-misc/re6stnet/files/grdn-cfg
net-misc/re6stnet/files/grdn-cfg
+1
-1
net-misc/re6stnet/files/grdn-run
net-misc/re6stnet/files/grdn-run
+10
-4
No files found.
net-misc/re6stnet/files/grdn-cfg
View file @
80250e58
...
@@ -40,7 +40,7 @@ else
...
@@ -40,7 +40,7 @@ else
echo
"Configuration will be placed in
${
configfile
}
, please do manually backup later or you could lose your access."
echo
"Configuration will be placed in
${
configfile
}
, please do manually backup later or you could lose your access."
fi
fi
#
re6st-conf --registry "${registry}" --token "${token}" --dir "${configdir}"
re6st-conf
--registry
"
${
registry
}
"
--token
"
${
token
}
"
--dir
"
${
configdir
}
"
printf
'%s\n'
"
${
options
[@]
}
"
>>
"
${
configfile
}
"
printf
'%s\n'
"
${
options
[@]
}
"
>>
"
${
configfile
}
"
...
...
net-misc/re6stnet/files/grdn-run
View file @
80250e58
...
@@ -48,7 +48,7 @@ else
...
@@ -48,7 +48,7 @@ else
fi
fi
if
[
-r
"
${
path
}
/re6stnet.conf"
-a
-r
"
${
path
}
/cert.crt"
-a
-r
"
${
path
}
/cert.key"
-a
-r
"
${
path
}
/ca.crt"
]
;
then
if
[
-r
"
${
path
}
/re6stnet.conf"
-a
-r
"
${
path
}
/cert.crt"
-a
-r
"
${
path
}
/cert.key"
-a
-r
"
${
path
}
/ca.crt"
]
;
then
install
-d
"
${
configdir
}
"
install
-d
"
${
configdir
}
"
for
file
in
"
${
path
}
"
;
do
for
file
in
"
${
path
}
"
/
*
;
do
install
-m
600
"
${
file
}
"
"
${
configdir
}
"
install
-m
600
"
${
file
}
"
"
${
configdir
}
"
done
done
else
else
...
@@ -106,17 +106,23 @@ else
...
@@ -106,17 +106,23 @@ else
stop shill
stop shill
fi
fi
start shill
BLACKLISTED_DEVICES
=
"
${
blacklist_option
}
"
start shill
BLACKLISTED_DEVICES
=
"
${
blacklist_option
}
"
# wait a bit for the interfaces to be back
for
i
in
{
0..4
}
;
do
echo
-n
"."
;
sleep
1
done
echo
""
fi
fi
fi
fi
read
-p
"Should the interface accept router advertisement via IPv6 [y/N]? "
accept_ra
read
-p
"Should the interface accept router advertisement via IPv6 [y/N]? "
accept_ra
interface
_names
=
"
$(
ip
-o
link
show |
awk
-F
': '
'{print $2}'
)
"
interface
=
"
$(
ip
-o
link
show |
grep
'state UP'
|
awk
-F
': '
'{print $2}'
)
"
interface
=
"
$(
ip
-o
link
show |
grep
'state UP'
|
awk
-F
': '
'{print $2}'
||
echo
${
interface_names
}
|
grep
0
||
echo
${
interface_names
}
|
grep
1
)
"
read
-p
"Is '
${
interface
}
' the name of the interface that is used to access the Internet (via IPv4) [Y/n]? "
confirm
read
-p
"Is '
${
interface
}
' the name of the interface that is used to access the Internet (via IPv4) [Y/n]? "
confirm
if
[
"
$confirm
"
!=
"y"
-a
"
$confirm
"
!=
"Y"
-a
"
$confirm
"
!=
""
]
;
then
if
[
"
$confirm
"
!=
"y"
-a
"
$confirm
"
!=
"Y"
-a
"
$confirm
"
!=
""
]
;
then
printf
"running interfaces found:
\n
${
interface_names
}
\n
"
echo
"running interfaces found:"
echo
"
$(
ip
-o
link
show |
awk
-F
': '
'{print $2}'
)
"
read
-p
"name of the interface used to access the Internet (via IPv4): "
interface
read
-p
"name of the interface used to access the Internet (via IPv4): "
interface
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment