Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
eole-wol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
primtux-eole
Grenoble
eole-wol
Commits
6597d46f
Verified
Commit
6597d46f
authored
5 years ago
by
David Beniamine
Browse files
Options
Downloads
Patches
Plain Diff
Fix wakeonlan break after reboot
parent
15b57d24
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
wol/scripts/wakeonlanservice.sh
+2
-2
2 additions, 2 deletions
wol/scripts/wakeonlanservice.sh
wol/www/index.php
+1
-1
1 addition, 1 deletion
wol/www/index.php
with
3 additions
and
3 deletions
wol/scripts/wakeonlanservice.sh
+
2
−
2
View file @
6597d46f
...
...
@@ -18,7 +18,7 @@
getip
(){
awk
'/^lease/{IP=$2} /hardware ethernet/{gsub(";","",$3);if($3 == "'
$1
'"){print IP}}'
\
|
sort
-u
< /var/lib/dhcp/dhcpd.leases
< /var/lib/dhcp/dhcpd.leases
}
# $1 : file|stdin
...
...
@@ -105,7 +105,7 @@ do
IPS
=
$(
getip
$mac
|
sed
-e
's/ /,/g'
)
for
ip
in
$IPS
do
ssh
$ip
"reboot"
nohup
ssh
$ip
"reboot"
&
done
echo
"Redémarrage demandé, attendez une à deux minutes avant d'essayer de vous connecter"
| answer
fi
...
...
This diff is collapsed.
Click to expand it.
wol/www/index.php
+
1
−
1
View file @
6597d46f
...
...
@@ -140,7 +140,7 @@ if(!isset($action)){
?>
<form
action=
"index.php"
method=
"post"
>
<input
type=
"hidden"
name=
"action"
value=
"wake"
>
<input
type=
"hidden"
name=
"
name
"
value=
"
<?php
echo
$entry
[
1
];
?>
"
>
<input
type=
"hidden"
name=
"
mac
"
value=
"
<?php
echo
$entry
[
1
];
?>
"
>
<input
type=
"submit"
value=
"Démarrer"
title=
"Démarrer la machine"
>
</form>
<form
action=
"index.php"
method=
"post"
onsubmit=
'return confirm("Êtes-vous sûr de vouloir redémarrer la machine
<?
echo
$entry
[
2
];
?>
");'
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment