Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions scripts/fast-reboot-dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,9 @@ def generate_default_route_entries(filename):


def main():
if os.geteuid() != 0:
print >> sys.stderr, 'Please run as root'
sys.exit(0)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should exit 1?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

parser = argparse.ArgumentParser()
parser.add_argument('-t', '--target', type=str, default='/tmp', help='target directory for files')
args = parser.parse_args()
Expand Down