diff options
Diffstat (limited to 'app-admin/pwgen/files/pwgen.rc')
-rw-r--r-- | app-admin/pwgen/files/pwgen.rc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app-admin/pwgen/files/pwgen.rc b/app-admin/pwgen/files/pwgen.rc new file mode 100644 index 000000000000..424ea2dd7412 --- /dev/null +++ b/app-admin/pwgen/files/pwgen.rc @@ -0,0 +1,19 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + before local +} + +start() { + ebegin "Auto-scrambling root password for security" + echo root:`pwgen -s 16` | chpasswd > /dev/null 2>&1 + eend $? "Failed to scramble root password." +} + +stop() { + ebegin "Stopping pwgen" + eend $? "Failed to stop pwgen." +} |