From 5cc53dec883e4aa3a9f73a11ba9c1425c1791227 Mon Sep 17 00:00:00 2001 From: Conrad Lara - KG6JEI Date: Sun, 24 May 2015 12:30:23 -0700 Subject: [PATCH] tunnels: Set tunnel init.d scripts to be executable Remove the chmod step inside of setup. Came across one time where this didn't trigger. In addition this saves us from using additional storage space on the node as a +x creates a duplicate file. --- files/etc/init.d/vtundsrv | 0 files/www/cgi-bin/tunfunc.pm | 6 +----- 2 files changed, 1 insertion(+), 5 deletions(-) mode change 100644 => 100755 files/etc/init.d/vtundsrv diff --git a/files/etc/init.d/vtundsrv b/files/etc/init.d/vtundsrv old mode 100644 new mode 100755 diff --git a/files/www/cgi-bin/tunfunc.pm b/files/www/cgi-bin/tunfunc.pm index b837bfbc..3bd8bf4b 100644 --- a/files/www/cgi-bin/tunfunc.pm +++ b/files/www/cgi-bin/tunfunc.pm @@ -215,10 +215,6 @@ sub install_vtun # allow port 5525 for server connections open_5525_on_wan(); - # enable init.d scripts - system("chmod +x /etc/init.d/vtundsrv"); - system("chmod +x /etc/init.d/vtund"); - # create UCI config file system("touch /etc/config/vtun"); # create options section @@ -275,4 +271,4 @@ sub addrtoint { return( unpack( "N", pack( "C4", split( /[.]/,$_[0]))))}; sub inttoaddr { return( join( ".", unpack( "C4", pack( "N", $_[0]))))}; #weird uhttpd/busybox error requires a 1 at the end of this file -1 \ No newline at end of file +1