ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Linux - Run Script after reboot

    IT Discussion
    7
    21
    2.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hobbit666H
      hobbit666 @scottalanmiller
      last edited by

      @scottalanmiller said in Linux - Run Script after reboot:

      I might implement a script like this. Care to share the script itself?

      Not back in till Wednesday but it's a simple one so far

      Asks for a hostname on a prompt and runs hostnamectl
      Then asks for ip to assign and runs a few sed commands to edit the cfg-eth0 file.

      So the main idea is to run the command/script when root logs in next.

      1 Reply Last reply Reply Quote 1
      • 1
      • 2
      • 2 / 2
      • First post
        Last post