/*

  Uptime changer for Linux kernel 2.0 (and probably 2.1)
  ------------------------------------------------------
  WARNING: it takes some time for kernel to accomodate - about
  5 seconds to skip one week. In the other words, your system
  will be *NOT* responding for short period of time - do NOT
  reboot it, just wait.
  
  (c) lcamtuf@ids.pl
  
  Distributed without any warranty under GPL version 2 terms
  and conditions.
  
*/

#define MODULE
#define __KERNEL__

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/version.h>

// Increase uptime by 7 days:

#define DAYS   7
#define HOURS  0


#define NEW 8640000 * DAYS + 360000 * HOURS

int init_module(void) {
  printk("Uptime: %d ->%d\n",jiffies,jiffies+=NEW);
  printk("Dying -- ");
  return 1;
}

void cleanup_module(void) {}
