Skip to content

Commit 02f73b7

Browse files
authored
Merge pull request #88 from KirillSmirnov/patch-1
Properly setup init_tty.sh script
2 parents e4eb119 + 918e9bc commit 02f73b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

www/cgi-bin/pppd.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ read -r params
2121
./notifyThenKill.sh "$(basename -- "$0")" $$ "$params"
2222

2323
if [ "$params" = "true" ]; then
24-
ln -f "$tty_path"tty_ppp.sh $init_tty
24+
ln -sf "$tty_path"tty_ppp.sh $init_tty
2525
else
26-
ln -f "$tty_path"tty_login.sh $init_tty
26+
ln -sf "$tty_path"tty_login.sh $init_tty
2727
fi
2828

2929
sed -i "3c${params}" current-params
3030

3131
echo "HTTP/1.1 201 Modified"
32+
sync
3233
reboot

0 commit comments

Comments
 (0)