Skip to content

Commit

Permalink
Fix hostname path
Browse files Browse the repository at this point in the history
  • Loading branch information
roleoroleo committed May 28, 2024
1 parent 42d08f9 commit 9cf96db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/static/static/home/yi-hack/script/wifidhcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ STATIC_DNS1=$(get_config STATIC_DNS1)
STATIC_DNS2=$(get_config STATIC_DNS2)

if [ -z $STATIC_IP ] || [ -z $STATIC_MASK ]; then
if [ -f /tmp/sd/yi-hack/etc/hostname ]; then
HN=$(cat /tmp/sd/yi-hack/etc/hostname)
if [ -f /etc/hostname ]; then
HN=$(cat /etc/hostname)
fi
udhcpc -i wlan0 -b -s /home/app/script/default.script -x hostname:$HN
else
Expand Down

0 comments on commit 9cf96db

Please sign in to comment.