Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:advanced:hotplug_extras [2023/10/03 10:04] – [Examples] vgaeteradocs:guide-user:advanced:hotplug_extras [2023/10/03 18:12] – [Instructions] avoid global delay, use delay per script if necessary vgaetera
Line 36: Line 36:
 cat << "EOF" >> /etc/sysupgrade.conf cat << "EOF" >> /etc/sysupgrade.conf
 /etc/hotplug.d/iface/90-online /etc/hotplug.d/iface/90-online
-EOF 
-mkdir -p /etc/hotplug.d/online 
-cat << "EOF" > /etc/hotplug.d/online/30-delay 
-sleep 10 
-EOF 
-cat << "EOF" >> /etc/sysupgrade.conf 
-/etc/hotplug.d/online/30-delay 
 EOF EOF
 </code> </code>
Line 49: Line 42:
 <code bash> <code bash>
 # Example script # Example script
-cat << "EOF" > /etc/hotplug.d/online/30-logger +cat << "EOF" > /etc/hotplug.d/online/00-logger 
-logger -t hotplug.${@} $(env)+logger -t hotplug $(env)
 EOF EOF
 /etc/init.d/network restart /etc/init.d/network restart
  • Last modified: 2023/10/14 05:44
  • by vgaetera