Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
jijisa
/
porch
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
ac845a93
authored
Jun 07, 2017
by
sungmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
modified faibase 10-misc
- bug : cannot attach hostname to hosts file
parent
993a9034
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
srv/fai/config/scripts/FAIBASE/10-misc
srv/fai/config/scripts/FAIBASE/10-misc
View file @
ac845a93
...
@@ -8,9 +8,11 @@ echo $TIMEZONE > $target/etc/timezone
...
@@ -8,9 +8,11 @@ echo $TIMEZONE > $target/etc/timezone
cp
-f
/usr/share/zoneinfo/
${
TIMEZONE
}
$target
/etc/localtime
cp
-f
/usr/share/zoneinfo/
${
TIMEZONE
}
$target
/etc/localtime
if
[
-n
"
$IPADDR
"
]
;
then
if
[
-n
"
$IPADDR
"
]
;
then
ifclass DHCPC
||
ainsl
-s
/etc/hosts
"
$IPADDR
$HOSTNAME
.
$DOMAIN
$HOSTNAME
"
#ifclass DHCPC || ainsl -s $target/etc/hosts "$IPADDR $HOSTNAME.$DOMAIN $HOSTNAME"
ifclass DHCPC
&&
ainsl
-s
/etc/hosts
"
$IPADDR
$HOSTNAME
.
$DOMAIN
$HOSTNAME
"
else
else
ifclass DHCPC
&&
ainsl
-s
/etc/hosts
"127.0.0.1
$HOSTNAME
"
#ifclass DHCPC && ainsl -s $target/etc/hosts "127.0.0.1 $HOSTNAME"
ifclass DHCPC
&&
ainsl
-s
/etc/hosts
"127.0.0.1
$HOSTNAME
"
fi
fi
fcopy
-iM
/etc/hosts /etc/motd
fcopy
-iM
/etc/hosts /etc/motd
...
...
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