IMPORTANT NOTICE

During the next period of time, the Thecus Wiki will migrate to a new site - the NAS Website. The migration is part of an improvement initiative, which includes giving the site a new look and making it more user friendly.

During the migration information may exist both at the old and new site, however slowly pages should start to be located mainly at the new site. Please see the NAS Website for details.

N5200 Module: SHUTDOWN

From Thecus Wiki

Jump to: navigation, search

Contents

Facts

Name: SHUTDOWN (Shutdown or reboot the device on login)

Maintainer(s): Andreas Vogel (omega), Peter Futterknecht (peterfu)

Target: N5200

Latest version: 2.00.04

Depends on module(s): none

Description

General Overview and Installation

This module comes as a ZIP compressed file with the name N5200_<modname>_<version>.zip, where <modname> is the module name and <version> is the version number of the module. While unpacking the ZIP file, a new directory N5200_<modname>_<version> containing the module and its source code is created.

The module file is called <modname>.mod and the source code is located in the directory <modname>. The source code is included for interested people and is not needed for module installation. The file Makefile can be used to rebuild the module on Linux systems.

The module is installed using the "System"->"Module Mgmt" menu in the Thecus Web Server Administration. Specify the file <modname>.mod as the module file and press "Install".

The whole installation process is logged and sent as an E-Mail if you're configured in the E-Mail notification configuration. After successful installation enable the module in order to run the module.

After uninstallation of the module, a log of the uninstall process will be send to the user(s) configured in the E-mail notification configuration. Prior uninstallation of the module, the actual configuration data is backed up to the place "/data/raid/module/backup/<modname>". When the module is installed again, the module configuration is restored from that place if available.

Module version 2.00.00

This patch will do the following things:

  • A user 'shutdown' with password 'shutdown' is created. When logging in as user shutdown, the system will be shut down immediately.
  • A user 'reboot' with password 'reboot' is created. When logging in as user reboot, the system will be rebooted immediately.

This module only makes sense if you install the SSHD or the SERGETTY module too. Otherwise you are not able to login to the system as user reboot or shutdown.

On the module property page, you can do this:

  • See a short module description.
  • Backup/Restore: backup/restore the passwords for the shutdown and reboot user to/from persistent storage (/raid/data/module/backup/SHUTDOWN).
  • Set new password for user shutdown or reboot.
  • Download/Upload: download/upload the SHUTDOW module configuration as a compressed tar file.

Module version 2.00.01

There was an error in the usertool which prevented to successfully change the password for a user.

Module version 2.00.02

Fixed a bug which prevented to save the passwords for the reboot/shutdown users when disabling/enabling or uninstalling/installing the module.

Module version 2.00.03

Fixed several bugs, especially when changing the passwords for the reboot and shutdown user. The module should work now with FW 2.00.04 too.

Module version 2.00.04

Changed because a script location was changed in FW 2.01.09, which is sued by this module.

News

  • <2007-01-22>: Version 2.00.00: First public release.
  • <2007-01-28>: Version 2.00.01: Bug fix release.
  • <2007-01-31>: Version 2.00.02: Bug fix release.
  • <2008-01-25>: Version 2.00.03: Bug fix release.
  • <2009-07-05>: version 2.00.04: Fix for FW version 2.01.09

Versions

  • Version 2.00.04
    • Release date: 2009-07-05
    • Works on firmware: 2.01.09
    • Does not work on firmware: < 2.01.09
    • Download: N5200_SHUTDOWN_2.00.04.zip
    • Major changes: Fix for new FW release (2.01.09)
  • Version 2.00.03
    • Release date: 2008-01-25
    • Works on firmware: 1.00.06.5
    • Does not work on firmware: <= 1.00.05
    • Download: N5200_SHUTDOWN_2.00.03.zip
    • Major changes: Bug fix release.
  • Version 2.00.02
    • Release date: 2007-01-31
    • Works on firmware: 1.00.06.5
    • Does not work on firmware: <= 1.00.05
    • Download: N5200_SHUTDOWN_2.00.02.zip
    • Major changes: Bug fix release.
  • Version 2.00.01
    • Release date: 2007-01-28
    • Works on firmware: 1.00.06.5
    • Does not work on firmware: <= 1.00.05
    • Download: N5200_SHUTDOWN_2.00.01.zip
    • Major changes: Bug fix release.
  • Version 2.00.00
    • Release date: 2007-01-22
    • Works on firmware: 1.00.06.5
    • Does not work on firmware: <= 1.00.05
    • Download: N5200_SHUTDOWN_2.00.00.zip
    • Major changes: First public release.
Personal tools
product resources