summaryrefslogtreecommitdiff
path: root/src/conf_mode/interfaces-wireless.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-12 11:17:27 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-12 11:18:52 +0200
commitcb76acad993760b2467667e1aa42d164db590ad8 (patch)
treec8c8112ca76c7d22a9d969709228c3e386d951c3 /src/conf_mode/interfaces-wireless.py
parenta457c9d21f94db233e90268703f8bc97a1ab64ec (diff)
downloadvyos-1x-cb76acad993760b2467667e1aa42d164db590ad8.tar.gz
vyos-1x-cb76acad993760b2467667e1aa42d164db590ad8.zip
vyos.util: rename chmod_x() -> chmod_755()
Diffstat (limited to 'src/conf_mode/interfaces-wireless.py')
-rwxr-xr-xsrc/conf_mode/interfaces-wireless.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conf_mode/interfaces-wireless.py b/src/conf_mode/interfaces-wireless.py
index 037614194..9331864bc 100755
--- a/src/conf_mode/interfaces-wireless.py
+++ b/src/conf_mode/interfaces-wireless.py
@@ -29,7 +29,7 @@ from vyos.configdict import list_diff, vlan_to_dict
from vyos.defaults import directories as vyos_data_dir
from vyos.ifconfig import WiFiIf
from vyos.ifconfig_vlan import apply_vlan_config, verify_vlan_config
-from vyos.util import process_running, chmod_x, chown, run, is_bridge_member
+from vyos.util import process_running, chmod_755, chown, run, is_bridge_member
from vyos import ConfigError
user = 'root'
@@ -120,7 +120,7 @@ def get_conf_file(conf_type, intf):
# create directory on demand
if not os.path.exists(cfg_dir):
os.mkdir(cfg_dir)
- chmod_x(cfg_dir)
+ chmod_755(cfg_dir)
chown(cfg_dir, user, group)
cfg_file = cfg_dir + r'/{}.cfg'.format(intf)
@@ -132,7 +132,7 @@ def get_pid(conf_type, intf):
# create directory on demand
if not os.path.exists(cfg_dir):
os.mkdir(cfg_dir)
- chmod_x(cfg_dir)
+ chmod_755(cfg_dir)
chown(cfg_dir, user, group)
cfg_file = cfg_dir + r'/{}.pid'.format(intf)
@@ -145,7 +145,7 @@ def get_wpa_suppl_config_name(intf):
# create directory on demand
if not os.path.exists(cfg_dir):
os.mkdir(cfg_dir)
- chmod_x(cfg_dir)
+ chmod_755(cfg_dir)
chown(cfg_dir, user, group)
cfg_file = cfg_dir + r'/{}.cfg'.format(intf)