login-validator: add IP
This commit is contained in:
parent
081b22a64a
commit
0b05e8539d
4 changed files with 31 additions and 13 deletions
|
|
@ -19,6 +19,9 @@ cmdline() {
|
|||
# Get some command line options
|
||||
USER_LOGIN=$(cmdline adlin.login)
|
||||
USER_PKEY=$(cmdline adlin.key)
|
||||
USER_IP=$(cmdline adlin.ip)
|
||||
|
||||
[ -n "${USER_IP}" ] && echo "${USER_IP}" > /root/my_ip
|
||||
|
||||
# Define hostname
|
||||
hostname adlin-${USER_LOGIN}
|
||||
|
|
|
|||
Reference in a new issue