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
408e181b
Commit
408e181b
authored
Nov 19, 2015
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use an array for options added to main config file.
parent
cd35f7ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
net-misc/re6stnet/files/grdn-cfg
net-misc/re6stnet/files/grdn-cfg
+4
-6
No files found.
net-misc/re6stnet/files/grdn-cfg
View file @
408e181b
...
...
@@ -4,7 +4,7 @@
mountpoint
=
"/media/removable"
configdir
=
"/home/chronos/user/.re6stconf"
configfile
=
"
${
configdir
}
/re6stnet.conf"
options
=
""
options
=
()
install
-d
${
configdir
}
...
...
@@ -18,7 +18,7 @@ fi
read
-p
"set re6st route as default [Y/n]? "
default
if
[
"
$default
"
==
"y"
-o
"
$default
"
==
"Y"
-o
"
$default
"
==
""
]
;
then
options+
=
"default "
options+
=
(
'default'
)
fi
read
-p
"save configuration on an external device [Y/n]? "
save
...
...
@@ -40,11 +40,9 @@ else
echo
"Configuration will be placed in
${
configfile
}
, please do manually backup later or you could lose your access."
fi
re6st-conf
--registry
"
${
registry
}
"
--token
"
${
token
}
"
--dir
${
configdir
}
#
re6st-conf --registry "${registry}" --token "${token}" --dir ${configdir}
for
opt
in
$options
;
do
echo
"
$opt
"
>>
${
configfile
}
done
printf
'%s\n'
"
${
options
[@]
}
"
>>
${
configfile
}
echo
"""
*filter
...
...
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