Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
nextgen-router
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
nextgen-router
Commits
58b702bb
Commit
58b702bb
authored
Jan 09, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compat with ntp
parent
b1c8c940
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
files/pxe/boot.cfg.j2
files/pxe/boot.cfg.j2
+11
-0
files/pxe/menu.ipxe
files/pxe/menu.ipxe
+1
-1
No files found.
files/pxe/boot.cfg.j2
View file @
58b702bb
...
...
@@ -7,6 +7,17 @@ set site_name MyCard Boot
# self address
set self_address {{services.address}}
# ntp address
{% if dnsmasq.ntp is defined and dnsmasq.ntp %}
{% if dnsmasq.ntp == "localhost" %}
set ntp_address ${self_address}
{% else %}
set ntp_address {{dnsmasq.ntp}}
{% endif %}
{% else %}
set ntp_address ntp.aliyun.com
{% endif %}
# set boot domain
set boot_domain ${self_address}:16980
...
...
files/pxe/menu.ipxe
View file @
58b702bb
...
...
@@ -4,7 +4,7 @@
chain --autofree boot.cfg ||
echo Attempting to retrieve latest upstream version number...
chain --timeout 5000 http://${boot_domain}/version.ipxe ||
ntp ${
self
_address} ||
ntp ${
ntp
_address} ||
iseq ${cls} serial && goto ignore_cls ||
set cls:hex 1b:5b:4a # ANSI clear screen sequence - "^[[J"
set cls ${cls:string}
...
...
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