Commit 69b290dd authored by Franco Fichtner's avatar Franco Fichtner

opnsense: apply whitespace changes

*runs for cover in fear of Ad's uncommited changes*
parent 368abf5d
......@@ -6,4 +6,4 @@
<body>
<?php echo $this->getContent(); ?>
</body>
</html>
\ No newline at end of file
</html>
<h1>Congratulations!</h1>
<p>You're now flying with Phalcon. Great things are about to happen!</p>
\ No newline at end of file
<p>You're now flying with Phalcon. Great things are about to happen!</p>
......@@ -9,4 +9,3 @@ class IndexController extends ControllerBase
}
}
......@@ -109,4 +109,4 @@ class ARP
}
}
\ No newline at end of file
}
......@@ -384,4 +384,4 @@ class DB {
}
\ No newline at end of file
}
......@@ -318,4 +318,4 @@ class Rules {
file_put_contents($filename,$ruleset_txt);
}
}
\ No newline at end of file
}
......@@ -123,4 +123,4 @@ class Shell
}
}
\ No newline at end of file
}
......@@ -6,4 +6,4 @@
<body>
{{ content() }}
</body>
</html>
\ No newline at end of file
</html>
<h1>Congratulations!</h1>
<p>You're now flying with Phalcon. Great things are about to happen!</p>
\ No newline at end of file
<p>You're now flying with Phalcon. Great things are about to happen!</p>
......@@ -36,8 +36,3 @@ print_r($acc_list);
//print_r($config->xpath('//pfsense/interfaces/*') );
//$rules= new \Core\Captiveportal\Rules();
......@@ -74,9 +74,9 @@ if [ "$pkg_running" == "" ]; then
# Lets get coreversion first
core_version=`pkg info opnsense | grep 'Version' | awk -F '[:]' '{print $2}'` # Changed to reflect current installed core version
# Timeout loop for pkg update -f
while [ "$pkg_running" != "" ] && [ $timer -ne 0 ];
while [ "$pkg_running" != "" ] && [ $timer -ne 0 ];
do
sleep 1 # wait for 1 second
pkg_running=`ps -x | grep "pkg " | grep -v "grep"`
......@@ -94,7 +94,7 @@ if [ "$pkg_running" == "" ]; then
pkg_running="started" # Set running state to arbitrary value
# Timeout loop for pkg upgrade -n
while [ "$pkg_running" != "" ] && [ $timer -ne 0 ];
while [ "$pkg_running" != "" ] && [ $timer -ne 0 ];
do
sleep 1 # wait for 1 second
#pkg_running=`ps | grep 'pkg update -f' | grep -v 'grep' | tail -n 1 | awk -F '[ ]' '{print $1}'`
......@@ -109,7 +109,7 @@ if [ "$pkg_running" == "" ]; then
if [ "$repo_ok" == "" ]; then
# Repository can be used for updates
repository="ok"
updates=`cat $tmp_pkg_output_file | grep 'The following' | awk -F '[ ]' '{print $3}'`
updates=`cat $tmp_pkg_output_file | grep 'The following' | awk -F '[ ]' '{print $3}'`
if [ "$updates" == "" ]; then
# There are no updates
updates="0"
......@@ -131,7 +131,7 @@ if [ "$pkg_running" == "" ]; then
else
i=`echo $i | tr -d :`
#echo "name:$i"
if [ "$packages_new" == "" ]; then
if [ "$packages_new" == "" ]; then
packages_new=$packages_new"{\"name\":\"$i\"," # If it is the first item then we do not want a seperator
else
packages_new=$packages_new", {\"name\":\"$i\","
......@@ -157,7 +157,7 @@ if [ "$pkg_running" == "" ]; then
itemcount=0 # This is not a valid item so reset item count
else
i=`echo $i | tr -d :`
if [ "$packages_upgraded" == "" ]; then
if [ "$packages_upgraded" == "" ]; then
packages_upgraded=$packages_upgraded"{\"name\":\"$i\"," # If it is the first item then we do not want a seperator
else
packages_upgraded=$packages_upgraded", {\"name\":\"$i\","
......
......@@ -13,5 +13,3 @@ else
echo 'Upgrade already in progress'
echo '***DONE***'
fi
......@@ -21,4 +21,3 @@ command:/usr/local/etc/rc.filter_synchronize
parameters:
type:script
message:Syncing firewall
......@@ -57,4 +57,3 @@ command:/usr/local/etc/rc.carpbackup
parameters:%s
type:script
message:Carp backup event
......@@ -70,5 +70,3 @@ command:/usr/local/etc/rc.savevoucher
parameters:
type:script
message:Synching vouchers
[main]
socket_filename:/var/run/check_reload_status
pid_filename:/var/run/check_reload_status.pid
......@@ -65,6 +65,3 @@ try:
print ('response:%s'% sock.recv(4096))
finally:
sock.close()
......@@ -30,4 +30,4 @@
"""
\ No newline at end of file
"""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment