source: /cluster/svnroot/bccd-ng/branches/sam-test_fw/packages/etc/init.d/bccd-automated @ 3072

Last change on this file since 3072 was 3072, checked in by leemasa, 10 years ago

re #524:
Added support for automatic shutdown w/o password, added code to automatically shut down after test suite
Made a file, /bccd_boot_flags that populates with boot flags from the NIC on startup. Now accessing boot flags is as simple as source /bccd_boot_flags.

  • Property svn:executable set to *
File size: 351 bytes
Line 
1#!/bin/sh
2
3### BEGIN INIT INFO
4# Provides:          bccd-automated
5# Required-Start:
6# Required-Stop:
7# Default-Start:     S
8# Default-Stop:
9# Short-Description: Perform important prep for the automated BCCD iso
10### END INIT INFO
11
12if [ -f "/testmode" ]; then
13echo 'bccd ALL=(ALL) NOPASSWD: /sbin/shutdown *' >> /etc/sudoers
14chmod 440 /etc/sudoers
15fi
16
Note: See TracBrowser for help on using the repository browser.