try to add: Code: #!/bin/sh at the very beginning of your script. also try Code: chmod a+x /etc/event.d/swapmop as root
#!/bin/sh
chmod a+x /etc/event.d/swapmop