Changed random hostname to random save space...

pull/5/head
xSmurf 9 years ago
parent 849fe5bd76
commit d525c19c62

@ -42,5 +42,7 @@ error_exit $?
error_exit $? error_exit $?
# Add symlink to gpg2 for convenience # Add symlink to gpg2 for convenience
if [ ! -e "$TARGET_DIR/usr/bin/gpg" ]; then
echo "Symlinking gpg2 ..." echo "Symlinking gpg2 ..."
ln -s /usr/bin/gpg2 $TARGET_DIR/usr/bin/gpg ln -s /usr/bin/gpg2 $TARGET_DIR/usr/bin/gpg
fi

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
do_start() { do_start() {
FILE=/usr/share/dict/hostname-list #FILE=/usr/share/dict/hostname-list
if [ -f "/etc/hostname" ]; then if [ -f "/etc/hostname" ]; then
OLDHOST="$(cat /etc/hostname)" OLDHOST="$(cat /etc/hostname)"
@ -22,7 +22,8 @@ do_start() {
# we aren't doing this, but it could be useful in the future. # we aren't doing this, but it could be useful in the future.
NOTFOUND=0 NOTFOUND=0
until [ "${NOTFOUND}" -gt "0" ]; do until [ "${NOTFOUND}" -gt "0" ]; do
WORD=$(/usr/bin/shuf -n1 "$FILE") #WORD=$(/usr/bin/shuf -n1 "$FILE")
WORD=$(/usr/bin/openssl rand -hex 8)
/bin/fgrep -r $WORD /etc/ 2>&1 >> /dev/null /bin/fgrep -r $WORD /etc/ 2>&1 >> /dev/null
NOTFOUND=$? NOTFOUND=$?

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save