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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
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
Show 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 @@
...
@@ -4,7 +4,7 @@
mountpoint
=
"/media/removable"
mountpoint
=
"/media/removable"
configdir
=
"/home/chronos/user/.re6stconf"
configdir
=
"/home/chronos/user/.re6stconf"
configfile
=
"
${
configdir
}
/re6stnet.conf"
configfile
=
"
${
configdir
}
/re6stnet.conf"
options
=
""
options
=
()
install
-d
${
configdir
}
install
-d
${
configdir
}
...
@@ -18,7 +18,7 @@ fi
...
@@ -18,7 +18,7 @@ fi
read
-p
"set re6st route as default [Y/n]? "
default
read
-p
"set re6st route as default [Y/n]? "
default
if
[
"
$default
"
==
"y"
-o
"
$default
"
==
"Y"
-o
"
$default
"
==
""
]
;
then
if
[
"
$default
"
==
"y"
-o
"
$default
"
==
"Y"
-o
"
$default
"
==
""
]
;
then
options+
=
"default "
options+
=
(
'default'
)
fi
fi
read
-p
"save configuration on an external device [Y/n]? "
save
read
-p
"save configuration on an external device [Y/n]? "
save
...
@@ -40,11 +40,9 @@ else
...
@@ -40,11 +40,9 @@ 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}
for
opt
in
$options
;
do
printf
'%s\n'
"
${
options
[@]
}
"
>>
${
configfile
}
echo
"
$opt
"
>>
${
configfile
}
done
echo
"""
echo
"""
*filter
*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