diff --git a/class/core/common.py b/class/core/common.py index ae9622aeb..4c4effdd4 100755 --- a/class/core/common.py +++ b/class/core/common.py @@ -50,6 +50,7 @@ def initInitD(): if not public.isAppleSystem(): initd_bin = '/etc/init.d/mw' if not os.path.exists(initd_bin): + import shutil shutil.copyfile(script_bin, initd_bin) public.execShell('chmod +x ' + initd_bin)