blob: a0294a2312528767d1ee8dad297705142e7dfc4e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/pwgen/files/pwgen.rc,v 1.3 2004/07/14 21:17:55 agriffis Exp $
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."
}
|