Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
initramfs-with-mca
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
nexedi
initramfs-with-mca
Commits
f47a417f
Commit
f47a417f
authored
Feb 23, 2023
by
Ophélie Gagnard
Committed by
Ophélie Gagnard
Mar 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
generation/get-information.sh: Display default netmask.
parent
ab51fd6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
generation/get-information.sh
generation/get-information.sh
+5
-3
No files found.
generation/get-information.sh
View file @
f47a417f
...
...
@@ -103,9 +103,9 @@ int_to_generic_netmask () {
DEFAULT_INTERFACE
=
$(
get_default_interface
)
DEFAULT_ROUTER
=
$(
get_default_router
)
DEFAULT_IP
=
$(
get_default_ip
)
default_netmask
=
$(
get_default_netmask
)
default_netmask_number
=
$(
echo
-e
"
${
default_netmask
}
"
|
awk
-F
/
'{print $2}'
)
FORMATTED_NETMASK
=
$(
int_to_generic_netmask
"
${
default_netmask_number
}
"
)
DEFAULT_NETMASK
=
$(
get_default_netmask
)
DEFAULT_NETMASK_NUMBER
=
$(
echo
-e
"
${
DEFAULT_NETMASK
}
"
|
awk
-F
/
'{print $2}'
)
FORMATTED_NETMASK
=
$(
int_to_generic_netmask
"
${
DEFAULT_NETMASK_NUMBER
}
"
)
TARGET_HOSTNAME
=
$(
hostname
)
# Get information about the partition layout
...
...
@@ -114,6 +114,8 @@ efi_partition_type="EFI System"
EFI_PARTITION_MOUNT_POINT
=
$(
get_partition_path
"
$efi_partition_type
"
)
ROOT_PARTITION_ID
=
$(
get_partition_id
"
$root_partition_type
"
)
echo
"export DEFAULT_NETMASK=
\"
$DEFAULT_NETMASK
\"
"
echo
"export DEFAULT_NETMASK_NUMBER=
\"
$DEFAULT_NETMASK_NUMBER
\"
"
echo
"export DEFAULT_INTERFACE=
\"
$DEFAULT_INTERFACE
\"
"
echo
"export DEFAULT_ROUTER=
\"
$DEFAULT_ROUTER
\"
"
echo
"export DEFAULT_IP=
\"
$DEFAULT_IP
\"
"
...
...
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