iankelling.org
/
git
/
automated-distro-installer
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c1ee0b18f725043592835d9091eef6e53b60c7e5
[automated-distro-installer]
/
fai
/
config
/
scripts
/
DEBIAN
/
10-rootpw
1
#! /bin/bash
2
3
error
=
0
;
trap
'error=$(($?>
$error
?$?:
$error
))'
ERR
# save maximum error code
4
5
# set root password
6
$ROOTCMD
usermod
-p
"
$ROOTPW
"
root
7
8
exit
$error