<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.mkcs.at/wikien/index.php?action=history&amp;feed=atom&amp;title=Hibernate-Standby_Resume_Script</id>
	<title>Hibernate-Standby Resume Script - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.mkcs.at/wikien/index.php?action=history&amp;feed=atom&amp;title=Hibernate-Standby_Resume_Script"/>
	<link rel="alternate" type="text/html" href="https://wiki.mkcs.at/wikien/index.php?title=Hibernate-Standby_Resume_Script&amp;action=history"/>
	<updated>2026-05-03T19:54:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://wiki.mkcs.at/wikien/index.php?title=Hibernate-Standby_Resume_Script&amp;diff=72&amp;oldid=prev</id>
		<title>MkWikiEnSysOp: 6 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://wiki.mkcs.at/wikien/index.php?title=Hibernate-Standby_Resume_Script&amp;diff=72&amp;oldid=prev"/>
		<updated>2018-06-28T17:19:36Z</updated>

		<summary type="html">&lt;p&gt;6 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This script is being executed after the system wakes up from either standby or hibernate. It restarts network-manager service and therefore is a workaround for a bug in Ubuntu.&lt;br /&gt;
&lt;br /&gt;
Put this script in /usr/lib/pm-utils/sleep.d/96mk (or choose another filename) and mark it executable.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
&lt;br /&gt;
LOGFILE=/var/log/96mk.log&lt;br /&gt;
date &amp;gt;&amp;gt; $LOGFILE&lt;br /&gt;
echo $1 &amp;gt;&amp;gt; $LOGFILE&lt;br /&gt;
&lt;br /&gt;
case &amp;quot;$1&amp;quot; in&lt;br /&gt;
	thaw|resume)&lt;br /&gt;
		echo $0 &amp;gt;&amp;gt; $LOGFILE&lt;br /&gt;
#		/usr/local/bin/say de 80 &amp;quot;mein meister. was kann ich für dich tun?&amp;quot;&lt;br /&gt;
		/usr/bin/service network-manager restart&lt;br /&gt;
		echo &amp;quot;finished&amp;quot; &amp;gt;&amp;gt; $LOGFILE&lt;br /&gt;
		;;&lt;br /&gt;
	*) exit $NA&lt;br /&gt;
		;;&lt;br /&gt;
esac&lt;br /&gt;
&lt;br /&gt;
exit 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[http://askubuntu.com/questions/226278/run-script-on-wakeup Credits]&lt;br /&gt;
&lt;br /&gt;
Other values despite of &amp;quot;thaw&amp;quot; and &amp;quot;resume&amp;quot; can be &amp;quot;hibernate&amp;quot; if the system is going to be hibernated or &amp;quot;suspend&amp;quot; if the system is going to stand-by.&lt;br /&gt;
&lt;br /&gt;
Yet another interesting directory is /usr/lib/pm-utils/power.d whose scripts are called when the system is powered on or off. The scripts are called with a parameter of &amp;quot;true&amp;quot; if powered on or &amp;quot;false&amp;quot; if powered off.&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;/div&gt;</summary>
		<author><name>MkWikiEnSysOp</name></author>
	</entry>
</feed>