/*
**	$VER: LoadAccounts.c 1.0 (22.06.94)
**
**	program to load accounts.library (and thus start daemon as root)
**
**	© Copyright 1994 by Norbert Püschel
**	All Rights Reserved
*/

#include <proto/exec.h>
#include <dos/dos.h>

static const UBYTE version[] = "$VER: LoadAccounts 1.0 " __AMIGADATE__;

int __saveds main(void)

{
  struct ExecBase *SysBase;
  struct Library *AccountsBase;

  SysBase = *(struct ExecBase **)4;

  AccountsBase = OpenLibrary("accounts.library",0);
  if(AccountsBase) {
    Wait(SIGBREAKF_CTRL_C);
    CloseLibrary(AccountsBase);
  }
  return(AccountsBase ? 0 : 20);
}
