Skip to content
Snippets Groups Projects

Ubuntu - Script Reboot if needed

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by RDR-IT
    Edited
    reboot-if-need.sh 79 B
    #!/bin/bash
    FILE=/var/run/reboot-required
    if [ -f "$FILE" ]; then
        reboot
    fi
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment