Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
16adc594
Commit
16adc594
authored
Mar 01, 2017
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: starting importer directly needs no timeout
parent
fedfd0a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
rc.importer
src/etc/rc.importer
+10
-9
No files found.
src/etc/rc.importer
View file @
16adc594
...
@@ -63,13 +63,6 @@ bootstrap_and_exit()
...
@@ -63,13 +63,6 @@ bootstrap_and_exit()
exit
0
exit
0
}
}
if
[
-n
"
${
DO_BOOT
}
"
]
;
then
touch
${
INSTALL
}
2> /dev/null
if
[
-f
${
INSTALL
}
-a
-f
/conf/config.xml
]
;
then
bootstrap_and_exit
fi
fi
timeout_prompt
()
timeout_prompt
()
{
{
OUTPUT
=
$(
echo
${
2
}
|
sed
's/./& /g'
)
OUTPUT
=
$(
echo
${
2
}
|
sed
's/./& /g'
)
...
@@ -93,8 +86,16 @@ timeout_prompt()
...
@@ -93,8 +86,16 @@ timeout_prompt()
return
${
RETURN
}
return
${
RETURN
}
}
}
if
!
timeout_prompt
'Press any key to start the configuration importer:'
.......
;
then
if
[
-n
"
${
DO_BOOT
}
"
]
;
then
bootstrap_and_exit
touch
${
INSTALL
}
2> /dev/null
if
[
-f
${
INSTALL
}
-a
-f
/conf/config.xml
]
;
then
bootstrap_and_exit
fi
if
!
timeout_prompt
\
'Press any key to start the configuration importer:'
.......
;
then
bootstrap_and_exit
fi
fi
fi
DEVS
=
$(
camcontrol devlist
)
DEVS
=
$(
camcontrol devlist
)
...
...
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