elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
busyelks
/
cmd
/
reboot.c
File editor
/* * reboot.c * * Copyright 2000 Alistair Riddoch * ajr@ecs.soton.ac.uk * * This file may be distributed under the terms of the GNU General Public * License v2, or at your option any later version. */ /* * This is a small version of reboot for use in the ELKS project. * It is not fully functional, and may not be the most efficient * implementation for larger systems. It minimises memory usage and * code size. */ #include <stdio.h> #include <unistd.h> #include <errno.h> int reboot_main(argc,argv) int argc; char ** argv; { sync(); if (umount("/")) { perror("reboot umount"); exit(1); } sleep(3); if (reboot(0x1D1E,0xC0DE,0x0123)) { perror("reboot"); exit(1); } }
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history