Skip to content

Commit

Permalink
Fixed hostname from flash path error
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsuh committed Dec 27, 2013
1 parent ab91609 commit 4351ae9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -2,3 +2,4 @@ flashimg*
rd.*
cfgflashrd.orig
onetimeBase
.DS_Store
4 changes: 2 additions & 2 deletions etc/rc.flashrd.onetime
Expand Up @@ -147,8 +147,8 @@ runScripts()
if [ ! -f /etc/.flashrd_onetime ]; then

# reset system hostname from flash disk
if [ -f /flash/etc/myname ]; then
/bin/cp /flash/etc/myname /etc/myname
if [ -f /flash/myname ]; then
/bin/cp /flash/myname /etc/myname
fi
hostname=`/bin/cat /etc/myname`

Expand Down

0 comments on commit 4351ae9

Please sign in to comment.